diff --git a/flake.nix b/flake.nix index 0573ba3..631092e 100644 --- a/flake.nix +++ b/flake.nix @@ -140,6 +140,7 @@ ./modules/nixos/pro_audio.nix ./modules/nixos/kdeconnect.nix + ./modules/nixos/steam.nix ./modules/nixos/hyprland.nix { @@ -169,6 +170,7 @@ ./modules/nixos/pro_audio.nix ./modules/nixos/kdeconnect.nix + ./modules/nixos/steam.nix ./modules/nixos/hyprland.nix { diff --git a/instances/thor/configuration.nix b/instances/thor/configuration.nix index 1fb825a..6fd22d2 100644 --- a/instances/thor/configuration.nix +++ b/instances/thor/configuration.nix @@ -75,17 +75,6 @@ enable = true; enableSSHSupport = true; }; - steam = { - enable = true; - package = pkgs.steam.override { - # extraPkgs = pkgs: with pkgs; [ icu ]; - # extraLibraries = pkgs: with pkgs; [ dconf.lib gnome.gvfs icu libdrm ]; - # extraProfile = '' - # export GSETTINGS_SCHEMA_DIR="${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas/" - # ''; - }; - remotePlay.openFirewall = true; - }; zsh.enable = true; }; diff --git a/modules/nixos/steam.nix b/modules/nixos/steam.nix new file mode 100644 index 0000000..fed395e --- /dev/null +++ b/modules/nixos/steam.nix @@ -0,0 +1,17 @@ +{ + programs.steam = { + enable = true; + # package = pkgs.steam.override { + # # extraPkgs = pkgs: with pkgs; [ icu ]; + # # extraLibraries = pkgs: with pkgs; [ dconf.lib gnome.gvfs icu libdrm ]; + # # extraProfile = '' + # # export GSETTINGS_SCHEMA_DIR="${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas/" + # # ''; + # }; + # remotePlay.openFirewall = true; # incorrect values + }; + networking.firewall = { + allowedTCPPorts = [ 27036 27037 ]; + allowedUDPPorts = [ 27031 27036 ]; + }; +}