about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/aptos/default.nix1
-rw-r--r--hosts/common/system/tailscale.nix6
2 files changed, 7 insertions, 0 deletions
diff --git a/hosts/aptos/default.nix b/hosts/aptos/default.nix
index e7264f5..24f823e 100644
--- a/hosts/aptos/default.nix
+++ b/hosts/aptos/default.nix
@@ -4,6 +4,7 @@
   imports = [ # Include the results of the hardware scan.
     ./hardware-configuration.nix
     ../common/desktop
+    ../common/system/tailscale.nix
     ../common/hardware/xps9300.nix
   ];
 
diff --git a/hosts/common/system/tailscale.nix b/hosts/common/system/tailscale.nix
new file mode 100644
index 0000000..88c123c
--- /dev/null
+++ b/hosts/common/system/tailscale.nix
@@ -0,0 +1,6 @@
+{ config, pkgs, lib, ... }:
+
+{
+  services.tailscale.enable = true;
+  networking.firewall.trustedInterfaces = [ "tailscale0" ];
+}