Merged networking folder into core and services
This commit is contained in:
parent
9ee249d1f2
commit
467f9a0b3e
6 changed files with 3 additions and 6 deletions
12
system/services/avahi.nix
Normal file
12
system/services/avahi.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
# network discovery, mDNS
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
domain = true;
|
||||
userServices = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./tailscale.nix
|
||||
./avahi.nix
|
||||
./kanata.nix
|
||||
./power.nix
|
||||
./ssh.nix
|
||||
|
|
|
|||
13
system/services/tailscale.nix
Normal file
13
system/services/tailscale.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue