mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Add tailscale
This commit is contained in:
parent
46ac925132
commit
0e513b6ce2
1 changed files with 13 additions and 0 deletions
13
modules/tailscale.nix
Normal file
13
modules/tailscale.nix
Normal 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 ];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue