2024-07-27 15:22:55 -04:00
|
|
|
defaultSession: {
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
2024-08-04 20:36:20 -04:00
|
|
|
}: {
|
|
|
|
config = let
|
|
|
|
inherit (config.vars) mainUser;
|
2024-07-27 15:22:55 -04:00
|
|
|
|
2024-08-04 20:36:20 -04:00
|
|
|
cfg = config.programs.steam;
|
|
|
|
in {
|
|
|
|
# Normal Steam Stuff
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
protontricks.enable = true;
|
2024-07-27 15:22:55 -04:00
|
|
|
|
2024-08-04 20:36:20 -04:00
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
extraCompatPackages = [
|
|
|
|
self.packages.${pkgs.system}.proton-ge-latest
|
|
|
|
];
|
|
|
|
};
|
2024-07-27 15:22:55 -04:00
|
|
|
|
2024-08-04 20:36:20 -04:00
|
|
|
# Jovian Steam settings
|
|
|
|
jovian.steam = {
|
|
|
|
# Steam > Settings > System > Enable Developer Mode
|
|
|
|
# Steam > Developer > CEF Remote Debugging
|
|
|
|
enable = true;
|
|
|
|
user = mainUser;
|
2024-07-27 15:22:55 -04:00
|
|
|
|
2024-08-04 20:36:20 -04:00
|
|
|
environment = {
|
|
|
|
STEAM_EXTRA_COMPAT_TOOLS_PATHS =
|
|
|
|
lib.makeSearchPathOutput
|
|
|
|
"steamcompattool"
|
|
|
|
""
|
|
|
|
cfg.extraCompatPackages;
|
|
|
|
};
|
|
|
|
|
|
|
|
desktopSession = defaultSession;
|
2024-07-27 15:22:55 -04:00
|
|
|
};
|
|
|
|
|
2024-08-04 20:36:20 -04:00
|
|
|
# Decky settings
|
|
|
|
jovian.decky-loader = {
|
|
|
|
enable = true;
|
|
|
|
user = mainUser;
|
|
|
|
stateDir = "/home/${mainUser}/.local/share/decky"; # Keep scoped to user
|
|
|
|
# https://github.com/Jovian-Experiments/Jovian-NixOS/blob/1171169117f63f1de9ef2ea36efd8dcf377c6d5a/modules/decky-loader.nix#L80-L84
|
2024-07-27 15:22:55 -04:00
|
|
|
|
2024-08-31 19:16:06 -04:00
|
|
|
extraPackages = builtins.attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
curl
|
|
|
|
unzip
|
|
|
|
util-linux
|
|
|
|
gnugrep
|
|
|
|
readline
|
|
|
|
procps
|
|
|
|
pciutils
|
|
|
|
libpulseaudio
|
|
|
|
;
|
|
|
|
};
|
2024-08-04 20:36:20 -04:00
|
|
|
};
|
2024-07-27 15:22:55 -04:00
|
|
|
|
2024-08-04 20:36:20 -04:00
|
|
|
# Misc Packages
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.steam-rom-manager
|
2024-08-14 22:43:06 -04:00
|
|
|
pkgs.r2modman
|
2024-09-12 21:35:53 -04:00
|
|
|
|
2024-08-04 20:36:20 -04:00
|
|
|
self.packages.${pkgs.system}.protonhax
|
2024-07-27 15:22:55 -04:00
|
|
|
|
2024-09-12 21:35:53 -04:00
|
|
|
# FIXME: Ryujinx ACNH crashes on Vulkan
|
2024-08-04 20:36:20 -04:00
|
|
|
# https://github.com/Ryujinx/Ryujinx/issues/6708
|
2024-09-12 21:35:53 -04:00
|
|
|
pkgs.ryujinx
|
2024-08-04 20:36:20 -04:00
|
|
|
];
|
|
|
|
};
|
2024-07-27 15:22:55 -04:00
|
|
|
|
2024-08-04 20:36:20 -04:00
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./steam.nix;
|
2024-07-27 15:22:55 -04:00
|
|
|
}
|