Move steam to NixOS module

This commit is contained in:
Filippo Berto 2024-03-12 17:45:27 +01:00
parent 2fb324dd97
commit 53fcb19a02
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
3 changed files with 19 additions and 11 deletions

View file

@ -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
{

View file

@ -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;
};

17
modules/nixos/steam.nix Normal file
View file

@ -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 ];
};
}