mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14: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;
|
readOnly = true;
|
||||||
default = [ ]
|
default = [ ]
|
||||||
# If initrdUnlock is true, then add a device entry to the initrd.luks.devices config.
|
# 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);
|
++ (lib.optional (config.content != null) config.content._config);
|
||||||
description = "NixOS configuration";
|
description = "NixOS configuration";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user