]> Untitled Git - monorepo.git/commitdiff
fix wrong expression main
authorPreston Pan <ret2pop@gmail.com>
Fri, 19 Sep 2025 08:07:12 +0000 (01:07 -0700)
committerPreston Pan <ret2pop@gmail.com>
Fri, 19 Sep 2025 08:07:12 +0000 (01:07 -0700)
config/nix.org
nix/modules/impermanence.nix

index eceecf38510a8ed7657618fc2763fcb7efdea1a0..a8f8a75adcefef37720b06d0a589096f3dd0be7b 100644 (file)
@@ -1196,9 +1196,11 @@ This is my impermanence profile, which removes all files on reboot except for th
       umount /btrfs_tmp
     '' else "");
 
       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" = {
 
     fileSystems = if (config.monorepo.profiles.impermanence.enable) then {
       "/persistent" = {
index e8b4b6f104ef7a7fc179adf68b68241a6fb38e46..aa876d94698137cd78661eab80d48794b6ab2976 100644 (file)
     umount /btrfs_tmp
   '' else "");
 
     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" = {
 
   fileSystems = if (config.monorepo.profiles.impermanence.enable) then {
     "/persistent" = {