mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-09 02:19:06 +02:00
feat: init biblios
This commit is contained in:
parent
26b7a30b5a
commit
6b99340b4d
5 changed files with 225 additions and 0 deletions
58
machines/biblios/default.nix
Normal file
58
machines/biblios/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
inputs,
|
||||
profiles,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
./garage.nix
|
||||
];
|
||||
|
||||
machine.meta = {
|
||||
arch = "x86_64-linux";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
hm_version = inputs.home-manager;
|
||||
profiles = with profiles; [
|
||||
vm-simple-network
|
||||
server
|
||||
behind-sniproxy
|
||||
];
|
||||
ips = {
|
||||
public.ipv4 = "82.67.34.230";
|
||||
vpn.ipv4 = "100.64.0.2";
|
||||
public.ipv6 = "2a01:e0a:de4:a0e1:eb2:aaaa::46";
|
||||
vpn.ipv6 = "fd7a:115c:a1e0::27";
|
||||
};
|
||||
};
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
deployment.tags = [ "server" ];
|
||||
|
||||
disko = import ./disko.nix;
|
||||
|
||||
luj.nginx.enable = true;
|
||||
|
||||
environment.persistence."/persistent" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/var/lib"
|
||||
"/var/log"
|
||||
"/srv"
|
||||
];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/srv".neededForBoot = true;
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue