modules: programs: steam: use writeShellScriptBin
ci/woodpecker/push/check Pipeline was successful Details

This commit is contained in:
Bruno BELANYI 2023-06-03 13:39:52 +01:00
parent 4f6f483851
commit 5d570dbf1e
1 changed files with 2 additions and 4 deletions

View File

@ -25,14 +25,12 @@ in
environment.systemPackages = builtins.map lib.hiPrio [
# Respect XDG conventions, leave my HOME alone
(pkgs.writeScriptBin "steam" ''
#!/bin/sh
(pkgs.writeShellScriptBin "steam" ''
mkdir -p "${cfg.dataDir}"
HOME="${cfg.dataDir}" exec ${lib.getExe steam} "$@"
'')
# Same, for GOG and other such games
(pkgs.writeScriptBin "steam-run" ''
#!/bin/sh
(pkgs.writeShellScriptBin "steam-run" ''
mkdir -p "${cfg.dataDir}"
HOME="${cfg.dataDir}" exec ${lib.getExe steam.run} "$@"
'')