modules/config: init new module
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
17
modules/nixos/config/boot/lanzaboote.nix
Normal file
17
modules/nixos/config/boot/lanzaboote.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = with inputs; [
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
];
|
||||
boot = {
|
||||
lanzaboote = {
|
||||
enable = config.module.config.secureBoot;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
};
|
||||
loader.systemd-boot.enable = lib.mkDefault (!config.boot.lanzaboote.enable);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user