From a488df8854303ff134889c4e169e5b60aa48e544 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 8 Oct 2023 21:34:45 +0200 Subject: [PATCH] open factorio port --- modules/desktop/default.nix | 7 +++---- modules/desktop/gaming.nix | 8 ++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 01b8f99..47fe492 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -52,22 +52,21 @@ in { }; }; - # unblock kde connect / gsconnect networking = { networkmanager.enable = true; - firewall.enable = true; firewall = { + enable = true; allowedTCPPortRanges = [ { - # KDE Connect + # KDE Connect / gsconnect from = 1714; to = 1764; } ]; allowedUDPPortRanges = [ { - # KDE Connect + # KDE Connect / gsconnect from = 1714; to = 1764; } diff --git a/modules/desktop/gaming.nix b/modules/desktop/gaming.nix index 82ea784..8355621 100644 --- a/modules/desktop/gaming.nix +++ b/modules/desktop/gaming.nix @@ -46,6 +46,14 @@ in { }; }; + networking.firewall.allowedUDPPortRanges = [ + { + # Factorio + from = 34197; + to = 34197; + } + ]; + my.allowUnfreePackages = [ "steam" "steam-original"