mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
sops: restructure secrets files
This commit is contained in:
parent
8561f6381b
commit
d14732b063
10 changed files with 58 additions and 45 deletions
|
|
@ -79,13 +79,13 @@ in
|
|||
}
|
||||
|
||||
(lib.mkIf tailscaleHostsExist {
|
||||
sops.secrets."service-tailscale-auth-key".owner = config.services.caddy.user;
|
||||
sops.secrets."tailscale/service-auth-key".owner = config.services.caddy.user;
|
||||
|
||||
services.caddy = {
|
||||
package = caddyWithTailscale;
|
||||
globalConfig = ''
|
||||
tailscale {
|
||||
auth_key {file.${config.sops.secrets."service-tailscale-auth-key".path}}
|
||||
auth_key {file.${config.sops.secrets."tailscale/service-auth-key".path}}
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue