packageSets(gaming): install lucem

This commit is contained in:
NullBite 2025-02-22 14:38:25 -05:00
parent 62b16ae836
commit 39782ecb3f
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 48 additions and 35 deletions

View File

@ -1,27 +1,35 @@
{ config, osConfig ? { }, lib, pkgs, ... }: {
let config,
osConfig ? {},
lib,
pkgs,
...
}: let
cfg = config.nixfiles.packageSets.gaming; cfg = config.nixfiles.packageSets.gaming;
default = osConfig.nixfiles.packageSets.gaming.enable or false; default = osConfig.nixfiles.packageSets.gaming.enable or false;
in in {
{
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
nixpkgs.overlays = let nixpkgs.overlays = let
in lib.mkAfter [ ]; in
lib.mkAfter [];
nixfiles.common.wm.autostart = [ nixfiles.common.wm.autostart = [
"steam -silent" "steam -silent"
]; ];
home.packages = with pkgs; [ home.packages = with pkgs;
ludusavi [
rclone # needed to sync ludusavi ludusavi
protontricks rclone # needed to sync ludusavi
] ++ lib.optionals cfg.enableLaunchers [ protontricks
steam ]
prismlauncher ++ lib.optionals cfg.enableLaunchers [
heroic steam
legendary-gl prismlauncher
]; heroic
legendary-gl
lucem
];
}; };
options.nixfiles.packageSets.gaming = { options.nixfiles.packageSets.gaming = {
enable = lib.mkOption { enable = lib.mkOption {

View File

@ -1,8 +1,12 @@
{ config, lib, pkgs, inputs, ...}:
let
cfg = config.nixfiles.packageSets.gaming;
in
{ {
config,
lib,
pkgs,
inputs,
...
}: let
cfg = config.nixfiles.packageSets.gaming;
in {
# oopsies this is for home-manager # oopsies this is for home-manager
# programs.mangohud.enable = lib.mkDefault true; # programs.mangohud.enable = lib.mkDefault true;
@ -10,25 +14,25 @@ in
enable = lib.mkEnableOption "gaming package set"; enable = lib.mkEnableOption "gaming package set";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
nixpkgs.overlays = let nixpkgs.overlays = let
steamGamescopeFix = (final: prev: { steamGamescopeFix = final: prev: {
steam = prev.steam.override { steam = prev.steam.override {
extraPkgs = pkgs: with pkgs; [ extraPkgs = pkgs:
xorg.libXcursor with pkgs; [
xorg.libXi xorg.libXcursor
xorg.libXinerama xorg.libXi
xorg.libXScrnSaver xorg.libXinerama
libpng xorg.libXScrnSaver
libpulseaudio libpng
libvorbis libpulseaudio
stdenv.cc.cc.lib libvorbis
libkrb5 stdenv.cc.cc.lib
keyutils libkrb5
]; keyutils
];
}; };
}); };
in [ steamGamescopeFix ]; in [steamGamescopeFix];
programs.steam = { programs.steam = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
@ -60,6 +64,7 @@ in
heroic heroic
protonup-ng protonup-ng
protonup-qt protonup-qt
lucem
]; ];
}; };
} }