blob: 183f44b2de71cc0860879819d36f76159589b517 [file] [log] [blame]
Skyler Grey252927a2022-10-18 22:18:15 +01001{ pkgs
2, username
3, ...
Skyler Grey1010db92022-09-05 03:21:48 +01004}: {
Skyler Grey944dfa22022-09-01 23:47:48 +01005 config = {
6 programs.steam = {
7 enable = true;
8 remotePlay.openFirewall = true;
9 };
10 hardware.steam-hardware.enable = true;
11
Skyler Greyc44e39a2022-10-31 00:32:26 +000012 internal.allowUnfree = [ "steam" "steam-original" "steam-runtime" "steam-run" ];
Skyler Grey7c61e7a2022-10-31 00:22:11 +000013 environment = {
Skyler Grey252927a2022-10-18 22:18:15 +010014 persistence."/large/persist".users.${username}.directories = [ ".local/share/Steam" ];
15 systemPackages = with pkgs; [
16 gamescope
Skyler Greyc44e39a2022-10-31 00:32:26 +000017 gamemode
18 sfs-select /*(
Skyler Grey7c61e7a2022-10-31 00:22:11 +000019 writeTextDir "share/applications/steam.desktop" ''
20 [Desktop Entry]
21 Name=Steam
22 Comment=Application for managing and playing games on steam
23 Exec=${pkgs.gamescope}/bin/gamescope -w 1920 -h 1080 -- ${pkgs.steam}/bin/steam
24 Icon=steam
25 Terminal=false
26 Type=Application
27 Categories=Network;FileTransfer;Game;
28 MimeType=x-scheme-handler/steam;x-scheme-handler/steamlink;
29 Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends;
30 PrefersNonDefaultGPU=true
31 X-KDE-RunOnDiscreteGpu=true
32 ''
Skyler Grey252927a2022-10-18 22:18:15 +010033 )*/
34 ];
Skyler Grey7c61e7a2022-10-31 00:22:11 +000035 };
36 boot.kernel.sysctl."dev.i915.perf_stream_paranoid" = "0";
Skyler Grey944dfa22022-09-01 23:47:48 +010037 };
38}