add: more system modules

This commit is contained in:
ooks-io 2024-01-17 22:18:39 +13:00
parent 47eb3e0691
commit 793cc3131c
17 changed files with 291 additions and 56 deletions

View 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;
};
}