Compare commits

..

2 commits

2 changed files with 2 additions and 4 deletions

View file

@ -21,6 +21,7 @@ in
sops = { sops = {
secrets."nix/access-tokens" = { secrets."nix/access-tokens" = {
owner = "root"; owner = "root";
group = "users";
mode = "0440"; mode = "0440";
sopsFile = ./secrets.yaml; sopsFile = ./secrets.yaml;
}; };
@ -29,8 +30,7 @@ in
access-tokens = ${config.sops.placeholder."nix/access-tokens"} access-tokens = ${config.sops.placeholder."nix/access-tokens"}
''; '';
owner = "root"; owner = "root";
# secret needs to be readable by users (nix client) as well as nix-daemon (running as root) group = "users";
group = if pkgs.stdenv.isDarwin then "localaccounts" else "users";
mode = "0440"; mode = "0440";
}; };
}; };

View file

@ -7,8 +7,6 @@
{ {
sops = { sops = {
age.keyFile = "/Users/os/Library/Application Support/sops/age/keys.txt"; age.keyFile = "/Users/os/Library/Application Support/sops/age/keys.txt";
age.sshKeyPaths = lib.mkForce [ ]; # no host keys
gnupg.sshKeyPaths = lib.mkForce [ ]; # no host keys
defaultSopsFile = lib.mkDefault ./secrets.yaml; defaultSopsFile = lib.mkDefault ./secrets.yaml;
defaultSopsFormat = "yaml"; # is the default. ini had some template rendering issues in practice defaultSopsFormat = "yaml"; # is the default. ini had some template rendering issues in practice
}; };