1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Add tailscale

This commit is contained in:
RGBCube 2024-05-09 23:10:56 +03:00
parent 46ac925132
commit 0e513b6ce2
No known key found for this signature in database

13
modules/tailscale.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib, ... }: with lib;
let
# Shorter is better for networking interfaces IMO.
interface = "ts0";
in systemConfiguration {
services.tailscale = enabled {
interfaceName = interface;
useRoutingFeatures = "both";
};
networking.firewall.trustedInterfaces = [ interface ];
}