summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to '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" = {