nixos-config/config/secureboot.nix

19 lines
466 B
Nix
Raw Normal View History

2022-04-20 07:35:17 +00:00
{ config, ... }: {
imports = [
../modules/systemd-secure-boot
];
sops.secrets."secureboot/DB.key" = { };
boot.loader.systemd-boot = {
editor = false;
secureBoot = {
enable = true;
keyPath = config.sops.secrets."secureboot/DB.key".path;
certPath = builtins.toString ../efi/DB.crt;
};
};
system.extraSystemBuilderCmds = ''
substituteAll ${../extra/switch-to-configuration.pl} $out/bin/switch-to-configuration
'';
2022-04-20 07:35:17 +00:00
}