More steaminess

This commit is contained in:
Daniel Flanagan 2024-06-18 11:46:03 -05:00
parent c5a473c557
commit 41b16a7173
3 changed files with 38 additions and 8 deletions

View file

@ -66,5 +66,12 @@
programs.chromium = { programs.chromium = {
enable = true; enable = true;
}; };
programs.btop = {
enable = true;
package = pkgs.btop.override {
rocmSupport = true;
};
};
}; };
} }

View file

@ -1,23 +1,45 @@
{pkgs, ...}: { {pkgs, ...}: {
programs.steam.enable = true; programs.gamescope.enable = true;
programs.steam.gamescopeSession.enable = true;
# programs.steam.package = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.steam; programs.steam = {
programs.steam.remotePlay.openFirewall = true; enable = true;
extest.enable = true;
gamescopeSession.enable = true;
gamescope.enable = true;
extraPackages = with pkgs; [
gamescope
];
extraCompatPackages = with pkgs; [
proton-ge-bin
];
localNetworkGameTransfers.openFirewall = true;
remotePlay.openFirewall = true;
};
hardware.steam-hardware.enable = true;
services.udev.packages = with pkgs; [steam]; services.udev.packages = with pkgs; [steam];
# remote play ports environment.systemPackages = with pkgs; [
dualsensectl
];
# TODO: remote play ports - should be unnecessary due to
# programs.steam.remotePlay.openFirewall = true;
networking.firewall.allowedUDPPortRanges = [ networking.firewall.allowedUDPPortRanges = [
# UDP 27031, 27036
{ {
from = 27031; from = 27031;
to = 27036; to = 27036;
} }
]; ];
networking.firewall.allowedTCPPortRanges = [ networking.firewall.allowedTCPPortRanges = [
# TCP 27036, 27037
{ {
from = 27036; from = 27036;
to = 27037; to = 27037;
} }
]; ];
# UDP 27031, 27036
# TCP 27036, 27037
} }

View file

@ -144,6 +144,7 @@
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
package = pkgs.bluez;
# powerOnBoot = true; # this is the default # powerOnBoot = true; # this is the default
}; };
powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
@ -161,5 +162,5 @@
}; };
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11"; system.stateVersion = "24.05";
} }