stuff
This commit is contained in:
parent
b8af0e9761
commit
8164e92af6
84 changed files with 674 additions and 567 deletions
12
common/secure-boot.nix
Normal file
12
common/secure-boot.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{self, attrName, config, lib, pkgs, ...}: let
|
||||
inherit (config.age) secrets;
|
||||
in{
|
||||
age.secrets.secure-boot.file = self + /secrets/secure-boot/${attrName}.tar.age;
|
||||
|
||||
system.activationScripts.secureboot = let
|
||||
target = config.boot.lanzaboote.pkiBundle;
|
||||
in ''
|
||||
mkdir --parents ${target}
|
||||
${lib.getExe pkgs.gnutar} --extract --file ${secrets.secure-boot.path} --directory ${target}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue