From: Preston Pan Date: Fri, 19 Sep 2025 08:07:12 +0000 (-0700) Subject: fix wrong expression X-Git-Url: https://ret2pop.net/gitweb/%22https:/%22./index.html/static/git-logo.png?a=commitdiff_plain;p=monorepo.git fix wrong expression --- 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" = {