mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
fixup svd: add set -e to job script
This matches the behavior of makeJobScript in nixos/lib/systemd-lib.nix.
This commit is contained in:
parent
2f92f24624
commit
5278b3d2d7
1 changed files with 4 additions and 1 deletions
|
|
@ -75,7 +75,10 @@ let
|
|||
};
|
||||
config = {
|
||||
command = lib.mkIf (config.script != "")
|
||||
(toString (pkgs.writeShellScript "${name}-script.sh" config.script));
|
||||
(toString (pkgs.writeShellScript "${name}-script.sh" ''
|
||||
set -e
|
||||
${config.script}
|
||||
''));
|
||||
|
||||
environment.PATH = lib.mkDefault (lib.makeBinPath config.path);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue