blob: dea29e604de0ac8e9ea609671af26c17bab2e23b [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 Grey252927a2022-10-18 22:18:15 +010012 internal.allowUnfree = [ "steam" "steam-original" "steam-runtime" ];
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
17 gamemode /*(
Skyler Grey7c61e7a2022-10-31 00:22:11 +000018 writeTextDir "share/applications/steam.desktop" ''
19 [Desktop Entry]
20 Name=Steam
21 Comment=Application for managing and playing games on steam
22 Exec=${pkgs.gamescope}/bin/gamescope -w 1920 -h 1080 -- ${pkgs.steam}/bin/steam
23 Icon=steam
24 Terminal=false
25 Type=Application
26 Categories=Network;FileTransfer;Game;
27 MimeType=x-scheme-handler/steam;x-scheme-handler/steamlink;
28 Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends;
29 PrefersNonDefaultGPU=true
30 X-KDE-RunOnDiscreteGpu=true
31 ''
Skyler Grey252927a2022-10-18 22:18:15 +010032 )*/
33 ];
Skyler Grey7c61e7a2022-10-31 00:22:11 +000034 };
35 boot.kernel.sysctl."dev.i915.perf_stream_paranoid" = "0";
Skyler Grey944dfa22022-09-01 23:47:48 +010036 };
37}