overlays: Move the Steam overlay into its own file
This commit is contained in:
parent
b77d8f702c
commit
0f6542e5a5
@ -18,49 +18,8 @@
|
|||||||
rev = "ce0e9482d53d69bedc8416d8a984d00e17607826";
|
rev = "ce0e9482d53d69bedc8416d8a984d00e17607826";
|
||||||
}))
|
}))
|
||||||
|
|
||||||
#(import (builtins.fetchTarball {
|
|
||||||
# url = "https://github.com/nix-community/NUR/archive/master.tar.gz";
|
|
||||||
# sha256 = "0r2pcc6sjxmhg1xxk23648wrwccv2c5v44cfwglx35az5y0hmr1f";
|
|
||||||
#}))
|
|
||||||
|
|
||||||
# Steam overlay
|
# Steam overlay
|
||||||
# TODO: Replace with the commented out version below
|
(import ../overlays/steam.nix pkgs)
|
||||||
(final: prev: let
|
|
||||||
buildFHSUserEnvBubblewrap = prev.callPackage ../packages/build-support/build-fhs-userenv-bubblewrap {};
|
|
||||||
steamPackages = lib.dontRecurseIntoAttrs (prev.callPackage ../packages/games/steam {
|
|
||||||
buildFHSUserEnv = buildFHSUserEnvBubblewrap;
|
|
||||||
});
|
|
||||||
in {
|
|
||||||
buildFHSUserEnvBubblewrap = buildFHSUserEnvBubblewrap;
|
|
||||||
steamPackages = steamPackages;
|
|
||||||
steam = steamPackages.steam-fhsenv.override {
|
|
||||||
extraPkgs = pkgs: with pkgs; [ gamemode ];
|
|
||||||
};
|
|
||||||
})
|
|
||||||
#(final: prev:
|
|
||||||
# let
|
|
||||||
# # NOTE: This is a really messy solution
|
|
||||||
# buildFHSUserEnvBubblewrap = prev.callPackage ../packages/build-support/build-fhs-userenv-bubblewrap {};
|
|
||||||
# in {
|
|
||||||
# steamPackages = prev.steamPackages.override {
|
|
||||||
# buildFHSUserEnv = buildFHSUserEnvBubblewrap;
|
|
||||||
# # Include gamemode in the FHS
|
|
||||||
# #extraPkgs = (pkgs: with pkgs; [ gamemode ]);
|
|
||||||
# };
|
|
||||||
|
|
||||||
# steam = prev.steamPackages.steam-fhsenv.overrideAttrs (old: {
|
|
||||||
# specifyHomeDirs = true;
|
|
||||||
# chdirTo = "/home/$USER";
|
|
||||||
# });
|
|
||||||
# #steam = final.steamPackages.steam-fhsenv.override {
|
|
||||||
# # extraPkgs = pkgs: with pkgs; [ gamemode ];
|
|
||||||
# #};
|
|
||||||
# steam-run = final.steam.run;
|
|
||||||
# steam-run-native = (final.steam.override {
|
|
||||||
# nativeOnly = true;
|
|
||||||
# });
|
|
||||||
# steamcmd = final.steamPackages.steamcmd;
|
|
||||||
# })
|
|
||||||
|
|
||||||
# Simple overrides
|
# Simple overrides
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
|
39
overlays/steam.nix
Normal file
39
overlays/steam.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
pkgs: final: prev:
|
||||||
|
|
||||||
|
# TODO: Replace with the commented out version below
|
||||||
|
let
|
||||||
|
buildFHSUserEnvBubblewrap = prev.callPackage ../packages/build-support/build-fhs-userenv-bubblewrap {};
|
||||||
|
steamPackages = lib.dontRecurseIntoAttrs (prev.callPackage ../packages/games/steam {
|
||||||
|
buildFHSUserEnv = buildFHSUserEnvBubblewrap;
|
||||||
|
});
|
||||||
|
in {
|
||||||
|
buildFHSUserEnvBubblewrap = buildFHSUserEnvBubblewrap;
|
||||||
|
steamPackages = steamPackages;
|
||||||
|
steam = steamPackages.steam-fhsenv.override {
|
||||||
|
extraPkgs = pkgsx: with pkgsx; [ gamemode ];
|
||||||
|
};
|
||||||
|
|
||||||
|
#(final: prev:
|
||||||
|
# let
|
||||||
|
# # NOTE: This is a really messy solution
|
||||||
|
# buildFHSUserEnvBubblewrap = prev.callPackage ../packages/build-support/build-fhs-userenv-bubblewrap {};
|
||||||
|
# in {
|
||||||
|
# steamPackages = prev.steamPackages.override {
|
||||||
|
# buildFHSUserEnv = buildFHSUserEnvBubblewrap;
|
||||||
|
# # Include gamemode in the FHS
|
||||||
|
# #extraPkgs = (pkgs: with pkgs; [ gamemode ]);
|
||||||
|
# };
|
||||||
|
|
||||||
|
# steam = prev.steamPackages.steam-fhsenv.overrideAttrs (old: {
|
||||||
|
# specifyHomeDirs = true;
|
||||||
|
# chdirTo = "/home/$USER";
|
||||||
|
# });
|
||||||
|
# #steam = final.steamPackages.steam-fhsenv.override {
|
||||||
|
# # extraPkgs = pkgs: with pkgs; [ gamemode ];
|
||||||
|
# #};
|
||||||
|
# steam-run = final.steam.run;
|
||||||
|
# steam-run-native = (final.steam.override {
|
||||||
|
# nativeOnly = true;
|
||||||
|
# });
|
||||||
|
# steamcmd = final.steamPackages.steamcmd;
|
||||||
|
# })
|
Loading…
Reference in New Issue
Block a user