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 --- nix/modules/impermanence.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nix') 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" = { -- cgit v1.3