diff options
-rw-r--r-- | nixos/hamac-configuration.nix | 1 | ||||
-rw-r--r-- | nixos/parts/tailscale.nix | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/nixos/hamac-configuration.nix b/nixos/hamac-configuration.nix index 2d03e4c..af97111 100644 --- a/nixos/hamac-configuration.nix +++ b/nixos/hamac-configuration.nix @@ -9,6 +9,7 @@ ./sanix.nix ./parts/basics.nix ./parts/graphical.nix + ./parts/tailscale.nix ]; # Bootloader. diff --git a/nixos/parts/tailscale.nix b/nixos/parts/tailscale.nix new file mode 100644 index 0000000..bce1564 --- /dev/null +++ b/nixos/parts/tailscale.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ + services.tailscale = { + enable = true; + extraUpFlags = [ + "--login-server=https://headscale.push-f.com/" + ]; + # Only needed during activation. + # authKeyFile = "/tmp/key-file"; + }; +} |