Other small formatting changes

This commit is contained in:
Bun 2025-03-18 04:43:14 -04:00
parent 8ecb59be3e
commit 30fc0dc800
4 changed files with 13 additions and 17 deletions

View file

@ -7,15 +7,13 @@
type nat hook prerouting priority dstnat; policy accept; type nat hook prerouting priority dstnat; policy accept;
tcp dport 2211 dnat ip to ${config.ips.pc}:22 comment "SSH to PC" tcp dport 2211 dnat ip to ${config.ips.pc}:22 comment "SSH to PC"
udp dport { 27005, 27015, 7777 } dnat ip to ${config.ips.pc} comment "PC Hosted Games" udp dport { 27005, 27015 } dnat ip to ${config.ips.pc} comment "PC Hosted Games"
tcp dport { 48010, 47989, 47984 } dnat ip to ${config.ips.pc} comment "PC Sunshine TCP" tcp dport { 48010, 47989, 47984 } dnat ip to ${config.ips.pc} comment "PC Sunshine TCP"
udp dport { 47998, 47999, 48000 } dnat ip to ${config.ips.pc} comment "PC Sunshine UDP" udp dport { 47998, 47999, 48000 } dnat ip to ${config.ips.pc} comment "PC Sunshine UDP"
tcp dport { 38010, 37989, 37984 } dnat ip to ${config.ips.vm} comment "VM Sunshine TCP" tcp dport { 38010, 37989, 37984 } dnat ip to ${config.ips.vm} comment "VM Sunshine TCP"
udp dport { 37998, 37999, 38000 } dnat ip to ${config.ips.vm} comment "VM Sunshine UDP" udp dport { 37998, 37999, 38000 } dnat ip to ${config.ips.vm} comment "VM Sunshine UDP"
udp dport { 7790, 7791, 7792 } dnat ip to ${config.ips.hx} comment "Deus Ex"
} }
chain POSTROUTING { chain POSTROUTING {

View file

@ -25,8 +25,8 @@
system = { system = {
desktop.enable = true; desktop.enable = true;
lanzaboote.enable = true; lanzaboote.enable = true;
video.nvidia.enable = true;
libvirtd.enable = true; libvirtd.enable = true;
video.nvidia.enable = true;
stateVersion = "24.05"; stateVersion = "24.05";
}; };
} }

View file

@ -1,9 +1,4 @@
{ ... }: { ... }:
{ {
networking.firewall = { networking.firewall.allowedUDPPorts = [ 27015 ];
allowedUDPPorts = [
27015 # Half-Life
7777 # Lethal Company
];
};
} }

View file

@ -7,13 +7,16 @@
}; };
config = { config = {
nix.settings = { nix = {
experimental-features = [ package = pkgs.lix;
"nix-command" settings = {
"flakes" experimental-features = [
]; "nix-command"
auto-optimise-store = true; "flakes"
trusted-users = [ "@wheel" ]; ];
auto-optimise-store = true;
trusted-users = [ "@wheel" ];
};
}; };
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowUnfreePackages; nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowUnfreePackages;