mirror of
https://github.com/nix-community/disko.git
synced 2024-11-09 00:04:18 +03:00
types luks: pass keyFile to nixos config
This commit is contained in:
parent
fc3c3817c9
commit
86e90d0fdb
@ -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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user