mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
types luks: pass keyFile to nixos config
This commit is contained in:
1 parent
fc3c3817c9
commit
86e90d0fdb
1 file changed
+5
-1
+5
-1
@@ -81,7 +81,11 @@
|
||||
readOnly = true;
|
||||
default = [ ]
|
||||
# If initrdUnlock is true, then add a device entry to the initrd.luks.devices config.
|
||||
++ (lib.optional config.initrdUnlock [{ boot.initrd.luks.devices.${config.name}.device = config.device; }])
|
||||
++ (lib.optional config.initrdUnlock [{
|
||||
boot.initrd.luks.devices.${config.name} = {
|
||||
inherit (config) device keyFile;
|
||||
};
|
||||
}])
|
||||
++ (lib.optional (config.content != null) config.content._config);
|
||||
description = "NixOS configuration";
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user