install steam
This commit is contained in:
parent
0a5077d024
commit
c56cd0bf0f
2 changed files with 29 additions and 0 deletions
|
@ -65,6 +65,7 @@
|
||||||
# distractions
|
# distractions
|
||||||
distractions.discord.enable = true;
|
distractions.discord.enable = true;
|
||||||
distractions.discord.armcord = true;
|
distractions.discord.armcord = true;
|
||||||
|
distractions.steam.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
28
modules/software/distractions/steam.nix
Normal file
28
modules/software/distractions/steam.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.software.distractions.steam;
|
||||||
|
in {
|
||||||
|
options.modules.software.distractions.steam = {
|
||||||
|
enable = mkEnableOption "Enable Steam, the game distribution software";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.steam.enable = true;
|
||||||
|
programs.gamemode = {
|
||||||
|
enable = true;
|
||||||
|
enableRenice = true;
|
||||||
|
settings = {};
|
||||||
|
};
|
||||||
|
programs.gamescope = {
|
||||||
|
enable = true;
|
||||||
|
capSysNice = true;
|
||||||
|
};
|
||||||
|
programs.steam.gamescopeSession = {
|
||||||
|
enable = true;
|
||||||
|
args = [ "-W 1920" "-H 1080" "-r 60" "--expose-wayland" "-e" ];
|
||||||
|
};
|
||||||
|
user.packages = [ pkgs.protontricks pkgs.steam-run ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue