switch over hopper fully (+ minor refactoring)
This commit is contained in:
parent
c38c6b9b29
commit
6ab8a4e38d
97 changed files with 71 additions and 25 deletions
13
nix/systemProfiles/network/avahi.nix
Normal file
13
nix/systemProfiles/network/avahi.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
# network discovery, mDNS
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
domain = true;
|
||||
userServices = true;
|
||||
};
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
6
nix/systemProfiles/network/goldberg.nix
Normal file
6
nix/systemProfiles/network/goldberg.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [47584];
|
||||
allowedUDPPorts = [47584];
|
||||
};
|
||||
}
|
12
nix/systemProfiles/network/localsend.nix
Normal file
12
nix/systemProfiles/network/localsend.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
localsend
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [53317];
|
||||
networking.firewall.allowedUDPPorts = [53317];
|
||||
}
|
13
nix/systemProfiles/network/networkd.nix
Normal file
13
nix/systemProfiles/network/networkd.nix
Normal 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
|
||||
}
|
12
nix/systemProfiles/network/tailscale.nix
Normal file
12
nix/systemProfiles/network/tailscale.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {config, ...}: {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
useRoutingFeatures = "client";
|
||||
#authKeyFile = config.sops.secrets.tailscale-auth.path;
|
||||
};
|
||||
}
|
5
nix/systemProfiles/network/wifi.nix
Normal file
5
nix/systemProfiles/network/wifi.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
networking.wireless = {
|
||||
iwd.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue