add: more system modules
This commit is contained in:
parent
47eb3e0691
commit
793cc3131c
17 changed files with 291 additions and 56 deletions
30
system/profiles/gaming/default.nix
Normal file
30
system/profiles/gaming/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, config, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.systemProfile.gaming;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.nix-gaming.nixosModules.pipewireLowLatency
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.opengl.extraPackages = [ pkgs.gamescope ];
|
||||
programs = {
|
||||
steam.enable = true;
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capsSysNice = true;
|
||||
};
|
||||
gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
softrealtime = "auto";
|
||||
renice = 15;
|
||||
};
|
||||
};
|
||||
};
|
||||
services.pipewire.lowLatency.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue