mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 03:26:17 +00:00
feat: split config more
This commit is contained in:
50
modules/nixos/usecases/gaming.nix
Normal file
50
modules/nixos/usecases/gaming.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.usecases.gaming;
|
||||
in
|
||||
{
|
||||
options.usecases.gaming = {
|
||||
enable = mkEnableOption "Enable gaming things";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.steam.enable = true;
|
||||
|
||||
services.udev.packages = with pkgs; [ oversteer ];
|
||||
users.users.${username}.extraGroups = [
|
||||
"wheel"
|
||||
"input"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
steam
|
||||
oversteer
|
||||
obs-studio
|
||||
(lutris.override {
|
||||
extraLibraries =
|
||||
pkgs: with pkgs; [
|
||||
libgudev
|
||||
libvdpau
|
||||
libsoup
|
||||
];
|
||||
})
|
||||
wine
|
||||
winetricks
|
||||
protontricks
|
||||
mangohud
|
||||
gamescope
|
||||
gamemode
|
||||
# fix for some proton games not launching without any error message
|
||||
libxcrypt
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user