mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
fixup svd: make environment.PATH compose better
This commit is contained in:
parent
16107f5520
commit
86248da110
1 changed files with 3 additions and 3 deletions
|
|
@ -51,9 +51,7 @@ let
|
|||
Environment variables passed to the service's process.
|
||||
'';
|
||||
type = types.attrsOf types.str;
|
||||
default = {
|
||||
PATH = lib.makeBinPath config.path;
|
||||
};
|
||||
default = {};
|
||||
};
|
||||
extraConfig = lib.mkOption {
|
||||
description = lib.mdDoc ''
|
||||
|
|
@ -66,6 +64,8 @@ let
|
|||
config = {
|
||||
command = lib.mkIf (config.script != "")
|
||||
(toString (pkgs.writeShellScript "${name}-script.sh" config.script));
|
||||
|
||||
environment.PATH = lib.mkDefault (lib.makeBinPath config.path);
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue