mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01: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
|
||||
cfg = config.custom.services.tailscale;
|
||||
in
|
||||
|
|
@ -23,9 +28,11 @@ in
|
|||
services.tailscale = {
|
||||
enable = true;
|
||||
package = pkgs-unstable.tailscale;
|
||||
|
||||
authKeyFile = config.sops.secrets."tailscale/auth-key".path;
|
||||
openFirewall = true;
|
||||
useRoutingFeatures = if cfg.exitNode.enable then "server" else "client";
|
||||
|
||||
extraUpFlags = [ "--reset=true" ];
|
||||
extraSetFlags = [
|
||||
"--ssh=${lib.boolToString cfg.ssh.enable}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue