modules: programs: steam: use writeShellScriptBin
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
This commit is contained in:
parent
4f6f483851
commit
5d570dbf1e
|
@ -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} "$@"
|
||||
'')
|
||||
|
|
Loading…
Reference in a new issue