refactor: simplify hosts to share a common configuration.nix

This commit is contained in:
Guz
2025-02-05 10:22:46 -03:00
parent 4d9d73c1c4
commit ec9175479e
14 changed files with 818 additions and 1718 deletions

22
secrets.nix Normal file
View File

@@ -0,0 +1,22 @@
{
config,
inputs,
pkgs,
...
}: {
imports = [
inputs.sops-nix.nixosModules.sops
];
environment.systemPackages = with pkgs; [
sops
];
sops.defaultSopsFile = ./secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/sops/keys.txt";
sops.secrets."guz/password" = {
owner = config.users.users.guz.name;
};
}