mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
tailscale: Format
This commit is contained in:
parent
13e40968f6
commit
6274c9af16
1 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs-unstable, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs-unstable,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.custom.services.tailscale;
|
cfg = config.custom.services.tailscale;
|
||||||
in
|
in
|
||||||
|
|
@ -23,9 +28,11 @@ in
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs-unstable.tailscale;
|
package = pkgs-unstable.tailscale;
|
||||||
|
|
||||||
authKeyFile = config.sops.secrets."tailscale/auth-key".path;
|
authKeyFile = config.sops.secrets."tailscale/auth-key".path;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
useRoutingFeatures = if cfg.exitNode.enable then "server" else "client";
|
useRoutingFeatures = if cfg.exitNode.enable then "server" else "client";
|
||||||
|
|
||||||
extraUpFlags = [ "--reset=true" ];
|
extraUpFlags = [ "--reset=true" ];
|
||||||
extraSetFlags = [
|
extraSetFlags = [
|
||||||
"--ssh=${lib.boolToString cfg.ssh.enable}"
|
"--ssh=${lib.boolToString cfg.ssh.enable}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue