tailscale: fix tailscale operator flag
This commit is contained in:
parent
68a46a0160
commit
f0289e8cec
2 changed files with 2 additions and 4 deletions
|
|
@ -17,9 +17,7 @@ in {
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
tailscale-auth = mkIf tailscale.enable {
|
tailscale-auth = mkIf tailscale.enable {
|
||||||
file = "${self}/secrets/tailscale-auth.age";
|
file = "${self}/secrets/tailscale-auth.age";
|
||||||
owner = "${admin.name}";
|
mode = "444";
|
||||||
group = "users";
|
|
||||||
mode = "400";
|
|
||||||
};
|
};
|
||||||
github_key = mkIf admin.homeManager {
|
github_key = mkIf admin.homeManager {
|
||||||
file = "${self}/secrets/github_key.age";
|
file = "${self}/secrets/github_key.age";
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ in {
|
||||||
# flags to pass to the auto-connect service
|
# flags to pass to the auto-connect service
|
||||||
extraUpFlags = concatLists [
|
extraUpFlags = concatLists [
|
||||||
["--ssh"]
|
["--ssh"]
|
||||||
(optionals (admin.name != null) ["--operator ${admin.name}"])
|
["--operator" "${admin.name}"]
|
||||||
(optionals host.exitNode ["--advertise-exit-node"])
|
(optionals host.exitNode ["--advertise-exit-node"])
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue