sops key are now set per-machine
sops fixes on path_regexes and keys update key re-encryption
This commit is contained in:
parent
beecd093e5
commit
8e7faaab5a
7 changed files with 135 additions and 91 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue