diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-03 15:59:16 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-03 15:59:16 +0100 |
| commit | f559671cae7b02526dedf7923b135c09e0d095d5 (patch) | |
| tree | 0f273fb13211c4aa7cae2add41e3aa2b1c6d7785 /share/system/steam.nix | |
Inital commit ;P
Diffstat (limited to 'share/system/steam.nix')
| -rw-r--r-- | share/system/steam.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/share/system/steam.nix b/share/system/steam.nix new file mode 100644 index 0000000..7137bfa --- /dev/null +++ b/share/system/steam.nix @@ -0,0 +1,24 @@ +{ lib, ... }: { + programs.steam.enable = true; + + nixpkgs.config = { + allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkg) [ + "steam" + "steam-original" + "steam-runtime" + ]; + packageOverrides = pkgs: { + steam = + pkgs.steam.override { extraPkgs = pkgs: with pkgs; [ libgdiplus ]; }; + }; + }; + + environment.sessionVariables = rec { + # Steam needs this to find Proton-GE + STEAM_EXTRA_COMPAT_TOOLS_PATHS = + "\${HOME}/.steam/root/compatibilitytools.d"; + # note: this doesn't replace PATH, it just adds this to it + PATH = [ "\${XDG_BIN_HOME}" ]; + }; +} |
