Add workaround for steam breaking on rebuild

This commit is contained in:
NullBite 2024-02-16 16:38:45 +01:00
parent 9c7adf7620
commit 91462a3a15
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -1,6 +1,7 @@
{ config, lib, pkgs, ...}:
{ config, lib, pkgs, inputs, ...}:
let
cfg = config.nixfiles.packageSets.gaming;
is2311 = lib.strings.hasInfix "23.11" lib.version;
in
{
# oopsies this is for home-manager
@ -10,6 +11,13 @@ in
enable = lib.mkEnableOption "gaming package set";
};
config = lib.mkIf cfg.enable {
# only needed on 23.11, increases closure size MASSIVELY
nixpkgs.overlays = lib.optional is2311 (_: _: {
# unstable steam has new buildFSHEnv which doesn't break on rebuild
steam = (import inputs.nixpkgs-unstable.outPath {config.allowUnfree = true; inherit (pkgs) system; }).steam;
});
programs.steam = {
enable = lib.mkDefault true;
gamescopeSession = {