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
|
|
@ -16,11 +16,11 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
meta.ports.list = [ config.services.tailscale.port ];
|
||||
|
||||
sops.secrets."tailscale-auth-key" = { };
|
||||
sops.secrets."tailscale/auth-key" = { };
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
authKeyFile = config.sops.secrets."tailscale-auth-key".path;
|
||||
authKeyFile = config.sops.secrets."tailscale/auth-key".path;
|
||||
openFirewall = true;
|
||||
useRoutingFeatures = if cfg.exitNode.enable then "server" else "client";
|
||||
extraUpFlags = [ "--reset=true" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue