mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 18:17:44 +00:00
Start refactor
This commit is contained in:
parent
99b7ccfadb
commit
06cce18e72
155 changed files with 2139 additions and 3738 deletions
17
modules/linux/tailscale.nix
Normal file
17
modules/linux/tailscale.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ lib, ... }: let
|
||||
inherit (lib) enabled;
|
||||
|
||||
# Shorter is better for networking interfaces IMO.
|
||||
interface = "ts0";
|
||||
in {
|
||||
# This doesn't work with dig but works with curl, Firefox
|
||||
# and all other tools. Skill issue.
|
||||
services.resolved.domains = [ "warthog-major.ts.net" ];
|
||||
|
||||
services.tailscale = enabled {
|
||||
interfaceName = interface;
|
||||
useRoutingFeatures = "both";
|
||||
};
|
||||
|
||||
networking.firewall.trustedInterfaces = [ interface ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue