Add all of iogamaster modules

This commit is contained in:
2024-06-15 09:59:52 +02:00
parent c97f22254a
commit fa99b32cad
120 changed files with 3587 additions and 254 deletions

View File

@@ -0,0 +1,40 @@
{
options,
config,
pkgs,
lib,
...
}:
with lib;
with lib.frajul; let
cfg = config.apps.steam;
in {
options.apps.steam = with types; {
enable = mkBoolOpt false "Enable or disable steam";
};
config = mkIf cfg.enable {
programs.steam.enable = true;
programs.steam.remotePlay.openFirewall = true;
programs.steam.gamescopeSession.enable = true;
environment.systemPackages = [
pkgs.steam
pkgs.mangohud
pkgs.protonup
];
environment.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${config.user.name}/.steam/root/compatibilitytools.d";
};
programs.gamemode.enable = true;
home.persist.directories = [
".local/share/Steam"
".steam"
".local/share/Terraria"
];
};
}