sops key are now set per-machine

sops fixes on path_regexes and keys update
key re-encryption
This commit is contained in:
boyreau 2026-09-26 08:55:19 +02:00
commit 8e7faaab5a
7 changed files with 135 additions and 91 deletions

View file

@ -17,6 +17,8 @@
./user.nix
];
sops.age.keyFile = "/etc/age/key.txt";
nix.nixPath = [
"nixos-config=/etc/nixos/machines/homelab/default.nix"
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"

View file

@ -30,6 +30,8 @@ in
./users.nix
];
sops.age.keyFile = "/home/zo/.config/sops/age/keys.txt";
nixpkgs.config.allowUnfree = true;
nix.nixPath = [
"nixos-config=/etc/nixos/machines/niczos/default.nix"
@ -81,6 +83,15 @@ in
i18n.defaultLocale = "en_US.UTF-8";
# Precious little secret
sops.secrets.cert_main_key = {
sopsFile = /etc/nixos/ssl/keys/main.yaml;
mode = "0060";
owner = "nobody";
group = "nogroup";
path = "/etc/ssl/keys/main.pem";
};
system.copySystemConfiguration = true;
system.stateVersion = "26.05";
}