diff options
Diffstat (limited to 'modules/private/system/dilion.nix')
-rw-r--r-- | modules/private/system/dilion.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/private/system/dilion.nix b/modules/private/system/dilion.nix index ca9a052..14155ef 100644 --- a/modules/private/system/dilion.nix +++ b/modules/private/system/dilion.nix | |||
@@ -5,6 +5,19 @@ | |||
5 | boot.kernelPackages = pkgs.linuxPackages_latest; | 5 | boot.kernelPackages = pkgs.linuxPackages_latest; |
6 | myEnv = import "${privateFiles}/environment.nix" // { inherit privateFiles; }; | 6 | myEnv = import "${privateFiles}/environment.nix" // { inherit privateFiles; }; |
7 | 7 | ||
8 | fileSystems = { | ||
9 | "/" = lib.mkForce { fsType = "zfs"; device = "zpool/root"; }; | ||
10 | "/boot" = { fsType = "ext4"; device = "/dev/disk/by-uuid/fd1c511e-2bc0-49d5-b8bb-95e7e8c8c816"; }; | ||
11 | "/etc" = { fsType = "zfs"; device = "zpool/root/etc"; }; | ||
12 | "/home" = { fsType = "zfs"; device = "zpool/root/home"; }; | ||
13 | "/home/immae" = { fsType = "zfs"; device = "zpool/root/home/immae"; }; | ||
14 | "/tmp" = { fsType = "zfs"; device = "zpool/root/tmp"; }; | ||
15 | "/var" = { fsType = "zfs"; device = "zpool/root/var"; }; | ||
16 | }; | ||
17 | boot.initrd.secrets = { | ||
18 | "/boot/pass.key" = "/boot/pass.key"; | ||
19 | }; | ||
20 | |||
8 | networking = { | 21 | networking = { |
9 | hostId = "27c3048d"; # generated with head -c4 /dev/urandom | od -A none -t x4 | 22 | hostId = "27c3048d"; # generated with head -c4 /dev/urandom | od -A none -t x4 |
10 | firewall.enable = false; | 23 | firewall.enable = false; |
@@ -82,6 +95,7 @@ | |||
82 | install -m 0755 -o root -g root -d /var/lib/caldance | 95 | install -m 0755 -o root -g root -d /var/lib/caldance |
83 | ''; | 96 | ''; |
84 | virtualisation.docker.enable = true; | 97 | virtualisation.docker.enable = true; |
98 | virtualisation.docker.storageDriver = "zfs"; | ||
85 | virtualisation.libvirtd.enable = true; | 99 | virtualisation.libvirtd.enable = true; |
86 | users.extraUsers.immae.extraGroups = [ "libvirtd" "docker" ]; | 100 | users.extraUsers.immae.extraGroups = [ "libvirtd" "docker" ]; |
87 | systemd.services.libvirtd.postStart = '' | 101 | systemd.services.libvirtd.postStart = '' |