diff options
Diffstat (limited to 'modules/services/system')
| -rw-r--r-- | modules/services/system/default.nix | 1 | ||||
| -rw-r--r-- | modules/services/system/tailscale.nix | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/services/system/default.nix b/modules/services/system/default.nix index 4c03dfd..b9ae4c7 100644 --- a/modules/services/system/default.nix +++ b/modules/services/system/default.nix @@ -3,5 +3,6 @@ ./networking ./audio.nix ./bluetooth.nix + ./tailscale.nix ]; } diff --git a/modules/services/system/tailscale.nix b/modules/services/system/tailscale.nix new file mode 100644 index 0000000..3fbd691 --- /dev/null +++ b/modules/services/system/tailscale.nix @@ -0,0 +1,15 @@ +{ + config, + pkgs, + lib, + ... +}: let + cfg = config.collinux.services.networking.tailscale; +in + lib.mkIf cfg.enable { + services.tailscale = { + enable = true; + useRoutingFeatures = "both"; + }; + environment.systemPackages = [pkgs.tailscale]; + } |
