pxeboot with nixos host configured and tested

This commit is contained in:
bogale 2026-10-28 00:27:53 +09:00
commit 2d4cf0b147
9 changed files with 268 additions and 89 deletions

View file

@ -2,6 +2,7 @@
boot = {
extraModulePackages = [ config.boot.kernelPackages.amneziawg ];
kernelModules = [ "amneziawg" ];
loader.limine.secureBoot.enable = true;
};
fileSystems = {
"/".options = [ "noatime" ];
@ -55,8 +56,20 @@
];
};
};
sops.secrets = {
awg-obf = { };
wifi-env = { };
sops = {
age.keyFile = "/var/lib/sops-nix/key.txt";
defaultSopsFile = ../.secrets.yaml;
secrets = {
awg-obf = { };
root-passwd = { };
wifi-env = { };
};
};
systemd.tmpfiles.rules = [
"L /root/backup/base/nixos - - - - /etc/nixos"
"L /root/backup/base/sbctl - - - - /var/lib/sbctl"
"L /root/backup/base/sops-nix - - - - /var/lib/sops-nix"
"d /root/backup/base"
];
users.users.root.hashedPasswordFile = config.sops.secrets.root-passwd.path;
}