pxeboot with nixos host configured and tested
This commit is contained in:
parent
1dd7fac8ed
commit
2d4cf0b147
9 changed files with 268 additions and 89 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue