diff --git a/hosts/Lenni/default.nix b/hosts/Lenni/default.nix index 9064ff8..9f702a8 100644 --- a/hosts/Lenni/default.nix +++ b/hosts/Lenni/default.nix @@ -2,7 +2,7 @@ { imports = [ ./hardware-configuration.nix - #./disko.nix + ./disko.nix ../../modules/default diff --git a/hosts/Lenni/disko.nix b/hosts/Lenni/disko.nix index e467ba0..89316a3 100644 --- a/hosts/Lenni/disko.nix +++ b/hosts/Lenni/disko.nix @@ -3,7 +3,7 @@ disk = { nvme0n1 = { type = "disk"; - device = "/dev/nvme0n1"; + device = "/dev/disk/by-id/nvme-SHGP31-1000GM_KND1N583310801V1L"; content = { type = "gpt"; partitions = { @@ -23,14 +23,7 @@ size = "100%"; content = { type = "luks"; - name = "crypted"; - # disable settings.keyFile if you want to use interactive password entry - #passwordFile = "/tmp/secret.key"; # Interactive - settings = { - allowDiscards = true; - keyFile = "/tmp/secret.key"; - }; - additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; + name = "cryptroot"; content = { type = "btrfs"; extraArgs = [ "-f" ]; @@ -53,7 +46,7 @@ }; "/swap" = { mountpoint = "/.swapvol"; - swap.swapfile.size = "20M"; + swap.swapfile.size = "40G"; }; }; };