Compare commits

..

2 commits

2 changed files with 4 additions and 2 deletions

View file

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

View file

@ -7,6 +7,8 @@
{ {
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
}; };