summaryrefslogtreecommitdiff
path: root/nix/modules/impermanence.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-09-19 01:07:12 -0700
committerPreston Pan <ret2pop@gmail.com>2025-09-19 01:07:12 -0700
commitcabee290a934702318de9fb6a035e61d79de2dfc (patch)
tree2ca51722ebe75adcd6b5fc0bb641806119df238b /nix/modules/impermanence.nix
parent56337bd35424b6e9fd131b542b2b5f0c3fb8a1d4 (diff)
fix wrong expression
Diffstat (limited to 'nix/modules/impermanence.nix')
-rw-r--r--nix/modules/impermanence.nix8
1 files changed, 5 insertions, 3 deletions
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" = {