From cabee290a934702318de9fb6a035e61d79de2dfc Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 19 Sep 2025 01:07:12 -0700 Subject: fix wrong expression --- config/nix.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config') 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" = { -- cgit v1.3