1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-05-30 22:59:10 +02:00
parent 5a65308798
commit ed3b006970
No known key found for this signature in database
7 changed files with 179 additions and 56 deletions

View file

@ -1,4 +1,5 @@
{config, inputs, ...}: {
{ config, inputs, ... }:
{
imports = [
inputs.lanzaboote.nixosModules.lanzaboote
];

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
programs.git = {
enable = true;
lfs.enable = true;

View file

@ -1,4 +1,5 @@
{inputs, ...}: {
{ inputs, ... }:
{
imports = [
inputs.nini.nixosModules.default
];

View file

@ -1,12 +1,24 @@
{self, attrName, config, lib, pkgs, ...}: let
{
self,
attrName,
config,
lib,
pkgs,
...
}:
let
inherit (config.age) secrets;
in{
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}
'';
system.activationScripts.secureboot =
let
target = config.boot.lanzaboote.pkiBundle;
in
''
rm --recursive --force -- ${lib.escapeShellArg target}
mkdir --parents -- ${lib.escapeShellArg target}
${lib.getExe pkgs.gnutar} --extract --file ${lib.escapeShellArg secrets.secure-boot.path} --directory ${lib.escapeShellArg target}
'';
}