Merged networking folder into core and services

This commit is contained in:
Jurn Wubben 2025-05-24 14:13:58 +02:00
parent 9ee249d1f2
commit 467f9a0b3e
6 changed files with 3 additions and 6 deletions

12
system/services/avahi.nix Normal file
View file

@ -0,0 +1,12 @@
{
# network discovery, mDNS
services.avahi = {
enable = true;
nssmdns4 = true;
publish = {
enable = true;
domain = true;
userServices = true;
};
};
}

View file

@ -1,5 +1,7 @@
{
imports = [
./tailscale.nix
./avahi.nix
./kanata.nix
./power.nix
./ssh.nix

View file

@ -0,0 +1,13 @@
{
networking.firewall = {
trustedInterfaces = ["tailscale0"];
# required to connect to Tailscale exit nodes
checkReversePath = "loose";
};
# inter-machine VPN
services.tailscale = {
enable = true;
openFirewall = true;
};
}