Compare commits
2 commits
de64d0d8d6
...
e6b96a9b2a
| Author | SHA1 | Date | |
|---|---|---|---|
| e6b96a9b2a | |||
| 22ced0b1e3 |
2 changed files with 2 additions and 4 deletions
|
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue