refactor2

This commit is contained in:
Lilith 2025-03-12 15:43:41 +01:00
parent 701c9d71f0
commit 7fa104b722
Signed by: lilith
GPG key ID: 8712A0F317C37175
30 changed files with 240 additions and 111 deletions

27
system/optional/steam.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, lib, ...}: {
options.gaming.enable = lib.mkEnableOption "Enable steam and related software";
config = lib.mkIf config.gaming.enable {
programs = {
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
gamescopeSession.enable = true;
};
gamemode.enable = true;
};
environment = {
systemPackages = with pkgs; [
mangohud
protonup
];
};
};
}