summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/pppd.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/pppd.nix b/modules/pppd.nix
index c176ec7..772cb29 100644
--- a/modules/pppd.nix
+++ b/modules/pppd.nix
@@ -72,6 +72,11 @@ in
default = "";
description = lib.mdDoc "Shell commands to be executed.";
};
+ runtimeInputs = mkOption {
+ type = types.listOf types.package;
+ default = [];
+ description = lib.mdDoc "dependencies of the shell script";
+ };
};
}
));
@@ -157,6 +162,7 @@ in
value.mode = "0755";
value.text = ''
#!/bin/sh
+ export PATH="${makeBinPath shCfg.runtimeInputs}:$PATH"
${shCfg.text}
'';