From 9210b04b886157d5226ccc7bda1898624e2977a3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 5 Mar 2022 13:20:28 -0800 Subject: tailscale: add tailscale to the laptop (aptos) --- hosts/aptos/default.nix | 1 + hosts/common/system/tailscale.nix | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 hosts/common/system/tailscale.nix (limited to 'hosts') 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" ]; +} -- cgit 1.4.1