Automatically set root user's sops key file

This commit is contained in:
Pim Kunis 2024-12-01 17:06:43 +01:00
parent a4b8cd941d
commit d5978e4d47
6 changed files with 3 additions and 16 deletions

View file

@ -7,11 +7,7 @@
facter.reportPath = ./facter.json;
system.stateVersion = "23.05";
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 = "${self}/secrets/lewis/nixos.yaml";
};
sops.defaultSopsFile = "${self}/secrets/lewis/nixos.yaml";
deployment = {
targetHost = "lewis";