From e1c8bb6ff741a281e9f3e8ad6681b151f6579b7a Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 8 Sep 2023 19:38:38 +0530 Subject: modules/pppd: init runtimeInputs for scripts --- modules/pppd.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') 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} ''; -- cgit v1.2.3