summaryrefslogtreecommitdiff
path: root/modules/pppd.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-09-08 19:38:38 +0530
committersinanmohd <sinan@sinanmohd.com>2023-09-08 20:02:47 +0530
commite1c8bb6ff741a281e9f3e8ad6681b151f6579b7a (patch)
tree8570ac82d0edb26a80b1c7da63781bb046f087da /modules/pppd.nix
parent19da93f1cca9dc56ed240ec063c59a572b79e51c (diff)
modules/pppd: init runtimeInputs for scripts
Diffstat (limited to 'modules/pppd.nix')
-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}
'';