init
This commit is contained in:
commit
3ab713a5b3
64 changed files with 2043 additions and 0 deletions
40
class/desktop/networking.nix
Normal file
40
class/desktop/networking.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
environment.persistence."/persist".directories = ["/etc/NetworkManager"];
|
||||
|
||||
services.resolved.enable = true;
|
||||
services.opensnitch.enable = true;
|
||||
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dns = "systemd-resolved";
|
||||
};
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
# Spotify track sync
|
||||
57621
|
||||
# Steam Remote Play
|
||||
27036
|
||||
# Source Dedicated Server SRCDS Rcon port
|
||||
27015
|
||||
# Syncthing TCP based sync protocol traffic
|
||||
22000
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
# Source Dedicated Server gameplay traffic
|
||||
27015
|
||||
# Syncthing QUIC based sync protocol traffic
|
||||
22000
|
||||
# Syncthing port for discovery broadcasts on IPv4 and multicasts on IPv6
|
||||
21027
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
# Steam Remote Play
|
||||
{
|
||||
from = 27031;
|
||||
to = 27036;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue