From 47b8159ff1a5b9f5cb450959369d7ad9cbc80fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Schwarz=C3=A4ugl?= Date: Sat, 11 Oct 2025 23:33:14 +0200 Subject: [PATCH] feat[client]: add lutris --- SwarselSystems.org | 23 +++++++++++++++++++++-- modules/home/optional/gaming.nix | 23 +++++++++++++++++++++-- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index 3d5ca0b..90714d7 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -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 + ]; + }; # }; # }; }; diff --git a/modules/home/optional/gaming.nix b/modules/home/optional/gaming.nix index e523332..d9657db 100644 --- a/modules/home/optional/gaming.nix +++ b/modules/home/optional/gaming.nix @@ -1,11 +1,14 @@ -{ 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 @@ -33,6 +36,22 @@ 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 + ]; + }; # }; # }; };