diff --git a/flake.nix b/flake.nix index d8e686a..592c4f7 100644 --- a/flake.nix +++ b/flake.nix @@ -53,7 +53,12 @@ zapret.nixosModules.zapret { home-manager.useUserPackages = true; - home-manager.users.yaroslav = import ./home/yaroslav/Aphelion/Aphelion.nix; + home-manager.users.yaroslav = { + imports = [ + ./home/yaroslav/Aphelion/Aphelion.nix + ./home/yaroslav/steam.nix + ]; + }; } ]; }; diff --git a/home/yaroslav/home.nix b/home/yaroslav/home.nix index 7b67a2a..c91456e 100644 --- a/home/yaroslav/home.nix +++ b/home/yaroslav/home.nix @@ -61,7 +61,7 @@ in remmina nekoray python3 -# prismlauncher + prismlauncher kdePackages.kcalc ayugram-desktop distrobox diff --git a/home/yaroslav/steam.nix b/home/yaroslav/steam.nix new file mode 100644 index 0000000..9633648 --- /dev/null +++ b/home/yaroslav/steam.nix @@ -0,0 +1,16 @@ +{ lib, ... }: +{ + programs.steam = { + enable = true; + remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play + dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers +}; + + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "steam" + "steam-original" + "steam-unwrapped" + "steam-run" + ]; +} diff --git a/hosts/generic/configuration_generic.nix b/hosts/generic/configuration_generic.nix index 6b00d4b..2065410 100644 --- a/hosts/generic/configuration_generic.nix +++ b/hosts/generic/configuration_generic.nix @@ -26,8 +26,10 @@ # networking networking.networkmanager.enable = true; - networking.firewall.allowedTCPPorts = [ 22 ]; - networking.nftables.enable = true; + networking.firewall.enable = false; +# networking.firewall.allowedTCPPorts = [ 22 38401 ]; +# networking.firewall.allowedUDPPorts = [ 38401 ]; +# networking.nftables.enable = true; # locales i18n.extraLocales = [ "en_US.UTF-8/UTF-8" "C.UTF-8/UTF-8" "ru_RU.UTF-8/UTF-8" ]; diff --git a/hosts/generic/home-persistence.nix b/hosts/generic/home-persistence.nix index 1ee347c..c8f6e57 100644 --- a/hosts/generic/home-persistence.nix +++ b/hosts/generic/home-persistence.nix @@ -8,6 +8,7 @@ ".local/share/nicotine" ".local/share/mpd" ".local/share/AyuGramDesktop" + ".local/share/PrismLauncher" ".config/dconf" ".mozilla" ".local/state"