feat[client]: add lutris

This commit is contained in:
Leon Schwarzäugl 2025-10-11 23:33:14 +02:00
parent acd87fca74
commit 47b8159ff1
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 42 additions and 4 deletions

View file

@ -15045,14 +15045,17 @@ Akin to the [[#h:f9aa9af0-9b8d-43ff-901d-9ffccdd70589][Optional]] NixOS modules.
The rest of the settings is at [[#h:fb3f3e01-7df4-4b06-9e91-aa9cac61a431][gaming]].
#+begin_src nix-ts :tangle modules/home/optional/gaming.nix
{ lib, config, pkgs, ... }:
{ lib, config, pkgs, nixosConfig ? config, ... }:
let
inherit (config.swarselsystems) isNixos;
in
{
options.swarselmodules.optional.gaming = lib.mkEnableOption "optional gaming settings";
config = lib.mkIf config.swarselmodules.optional.gaming {
# specialisation = {
# gaming.configuration = {
home.packages = with pkgs; [
lutris
# lutris
wine
protonplus
winetricks
@ -15080,6 +15083,22 @@ The rest of the settings is at [[#h:fb3f3e01-7df4-4b06-9e91-aa9cac61a431][gaming
retroarch
flips
];
programs.lutris = {
enable = true;
extraPackages = with pkgs; [
winetricks
gamescope
umu-launcher
];
steamPackage = if isNixos then nixosConfig.programs.steam.package else pkgs.steam;
winePackages = with pkgs; [
wineWow64Packages.waylandFull
];
protonPackages = with pkgs; [
proton-ge-bin
];
};
# };
# };
};