Reorganize some sops stuff

This commit is contained in:
Pim Kunis 2024-12-01 01:03:21 +01:00
parent a29d10e507
commit 6291f8d438
14 changed files with 152 additions and 195 deletions
machines/warwick

View file

@ -9,7 +9,7 @@
config = {
pim = {
tailscale.advertiseExitNode = true;
sopsKeys.root = ./nixos.sops.yaml;
sops-nix.usersWithSopsKeys = ["root"];
prometheus.enable = true;
};
@ -31,10 +31,7 @@
users.users.root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim ++ config.pim.ssh.keys.niels;
sops = {
age.keyFile = "/root/.config/sops/age/keys.txt";
defaultSopsFile = ./nixos.sops.yaml;
};
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_SD";