sops is no go, made syncthing and tailscale modular for no reason

This commit is contained in:
2026-04-23 15:20:27 -05:00
parent 48cac1436a
commit f6011be1d1
4 changed files with 25 additions and 89 deletions
+9 -12
View File
@@ -2,11 +2,12 @@
pkgs,
config,
lib,
inputs,
...
}: let
cfg = config.darwin.tailscale;
authkey_file = config.sops.secrets."tailscale_authkey".path;
in {
options.darwin.tailscale = {
enable = lib.mkEnableOption "enables tailscale";
};
@@ -14,20 +15,16 @@ in {
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
useRoutingFeatures = "both";
#overrideLocalDns = true;
#authKeyFile = authkey_file;
extraSetFlags = [
"--accept-routes=true" # true is equilivant to useRoutingFeatures = "client" (breaks shit)
"--accept-dns=true" # explicitly allow resolved
};
homebrew = {
casks = [
"tailscale-app"
];
};
# declare authkey secrets
sops.secrets = {
"tailscale_authkey" = {
owner = "root";
};
};
};
}