diff options
| -rw-r--r-- | config/nix.org | 8 | ||||
| -rw-r--r-- | nix/modules/impermanence.nix | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/config/nix.org b/config/nix.org index eceecf3..a8f8a75 100644 --- a/config/nix.org +++ b/config/nix.org @@ -1196,9 +1196,11 @@ This is my impermanence profile, which removes all files on reboot except for th umount /btrfs_tmp '' else ""); - boot.initrd.luks.devices = (if config.monorepo.profiles.impermanence.enable then [ - { name = "crypted"; device = "/dev/disk/by-partlabel/disk-main-luks"; } - ] else []); + boot.initrd.luks.devices = (if config.monorepo.profiles.impermanence.enable then { + crypted = { + device = "/dev/disk/by-partlabel/disk-main-luks"; + }; + } else {}); fileSystems = if (config.monorepo.profiles.impermanence.enable) then { "/persistent" = { diff --git a/nix/modules/impermanence.nix b/nix/modules/impermanence.nix index e8b4b6f..aa876d9 100644 --- a/nix/modules/impermanence.nix +++ b/nix/modules/impermanence.nix @@ -32,9 +32,11 @@ umount /btrfs_tmp '' else ""); - boot.initrd.luks.devices = (if config.monorepo.profiles.impermanence.enable then [ - { name = "crypted"; device = "/dev/disk/by-partlabel/disk-main-luks"; } - ] else []); + boot.initrd.luks.devices = (if config.monorepo.profiles.impermanence.enable then { + crypted = { + device = "/dev/disk/by-partlabel/disk-main-luks"; + }; + } else {}); fileSystems = if (config.monorepo.profiles.impermanence.enable) then { "/persistent" = { |
