From cabee290a934702318de9fb6a035e61d79de2dfc Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 19 Sep 2025 01:07:12 -0700 Subject: [PATCH] fix wrong expression --- config/nix.org | 8 +++++--- 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" = { -- 2.50.1