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;
default = osConfig.nixfiles.packageSets.gaming.enable or false;
in
{
in {
config = lib.mkIf cfg.enable {
nixpkgs.overlays = let
in lib.mkAfter [ ];
in
lib.mkAfter [];
nixfiles.common.wm.autostart = [
"steam -silent"
];
home.packages = with pkgs; [
ludusavi
rclone # needed to sync ludusavi
protontricks
] ++ lib.optionals cfg.enableLaunchers [
steam
prismlauncher
heroic
legendary-gl
];
home.packages = with pkgs;
[
ludusavi
rclone # needed to sync ludusavi
protontricks
]
++ lib.optionals cfg.enableLaunchers [
steam
prismlauncher
heroic
legendary-gl
lucem
];
};
options.nixfiles.packageSets.gaming = {
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
# programs.mangohud.enable = lib.mkDefault true;
@ -10,25 +14,25 @@ in
enable = lib.mkEnableOption "gaming package set";
};
config = lib.mkIf cfg.enable {
nixpkgs.overlays = let
steamGamescopeFix = (final: prev: {
steamGamescopeFix = final: prev: {
steam = prev.steam.override {
extraPkgs = pkgs: with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
extraPkgs = pkgs:
with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
});
in [ steamGamescopeFix ];
};
in [steamGamescopeFix];
programs.steam = {
enable = lib.mkDefault true;
@ -60,6 +64,7 @@ in
heroic
protonup-ng
protonup-qt
lucem
];
};
}