36 lines
857 B
Nix
Raw Normal View History

2023-08-11 11:01:40 +03:00
{ pkgs, lib, config, ... }: {
programs.steam.enable = true;
programs.steam.extraCompatPackages = [
pkgs.proton-ge
];
2023-10-13 19:51:59 +03:00
programs.gamescope.enable = true;
programs.gamescope.capSysNice = false;
2023-08-11 11:01:40 +03:00
2023-11-16 03:46:46 +03:00
# startupApplications = [ "steam" ];
startupApplications = let
gs = pkgs.writeShellScriptBin "gamescope-steam" ''
gamescope --steam --borderless -- steam
'';
in [
"${gs}/bin/gamescope-steam"
];
2023-08-11 11:01:40 +03:00
2023-08-30 18:39:32 +03:00
systemd.user.services.x11-ownership = {
2023-08-11 11:01:40 +03:00
script = ''
doas chown ${config.mainuser} /tmp/.X11-unix
'';
after = [ "hyprland-session.target" ];
wantedBy = [ "hyprland-session.target" ];
};
persist.state.homeDirectories = [
".local/share/Steam"
".steam"
] ++ [
# Games configs
".config/WarThunder"
2023-10-01 23:45:11 +03:00
".local/share/BeamNG.drive"
2023-10-13 19:51:59 +03:00
".local/share/Colossal\\ Order/Cities_Skylines"
2023-08-11 11:01:40 +03:00
];
}