switch over hopper fully (+ minor refactoring)

This commit is contained in:
xunuwu 2024-11-21 10:03:31 +01:00
parent c38c6b9b29
commit 6ab8a4e38d
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
97 changed files with 71 additions and 25 deletions

View file

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

View file

@ -0,0 +1,6 @@
{
networking.firewall = {
allowedTCPPorts = [47584];
allowedUDPPorts = [47584];
};
}

View file

@ -0,0 +1,12 @@
{
self,
super,
root,
}: {pkgs, ...}: {
environment.systemPackages = with pkgs; [
localsend
];
networking.firewall.allowedTCPPorts = [53317];
networking.firewall.allowedUDPPorts = [53317];
}

View file

@ -0,0 +1,13 @@
{
networking.useNetworkd = true;
systemd.network = {
enable = true;
};
services.resolved = {
enable = true;
dnssec = "true";
domains = ["~."];
};
# TODO use networkd-dispatcher to do some things when network connectivity changes maybe
}

View file

@ -0,0 +1,12 @@
{
self,
super,
root,
}: {config, ...}: {
services.tailscale = {
enable = true;
openFirewall = true;
useRoutingFeatures = "client";
#authKeyFile = config.sops.secrets.tailscale-auth.path;
};
}

View file

@ -0,0 +1,5 @@
{
networking.wireless = {
iwd.enable = true;
};
}