Skip to content

Commit 1aeffaa

Browse files
committed
nixos module: Add socketPath option
1 parent 32337cf commit 1aeffaa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flake.nix

+6
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@
100100
default = 0.5;
101101
description = "How much route shrinkage is allowed between subsequent runs (between 0 and 1)";
102102
};
103+
socketPath = mkOption {
104+
type = types.path;
105+
default = "/var/run/tailscale/tailscaled.sock";
106+
description = "Path to the tailscaled socket";
107+
};
103108
};
104109
config = mkIf cfg.enable {
105110
systemd.services.tailscale-manager = {
@@ -112,6 +117,7 @@
112117
ExecStart = lib.escapeShellArgs (
113118
[ "${cfg.package}/bin/tailscale-manager" configFile
114119
"--tailscale=${config.services.tailscale.package}/bin/tailscale"
120+
"--socket=${cfg.socketPath}"
115121
"--interval=${toString cfg.interval}"
116122
"--max-shrink-ratio=${toString cfg.maxShrinkRatio}"
117123
] ++ lib.optional cfg.dryRun "--dryrun"

0 commit comments

Comments
 (0)