diff options
author | tv <tv@krebsco.de> | 2018-02-28 14:15:29 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-02-28 15:15:58 +0100 |
commit | 6169d848f471ad37eaf675bc5ca33d4742ab4c09 (patch) | |
tree | 41b8c9b44d72d568d65e0d0b5cdf05ce03234af6 /lib | |
parent | 7da195cd472fa133127ea5a033eacaa4ff40db1b (diff) |
populate: 2.1.0 -> 2.3.0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/types.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix index 9ae92ea..1cf2d96 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -255,6 +255,14 @@ rec { default = null; type = nullOr source-types.pass; }; + pipe = mkOption { + apply = x: + if absolute-pathname.check x + then { command = x; } + else x; + default = null; + type = nullOr (either absolute-pathname source-types.pipe); + }; symlink = mkOption { type = nullOr (either pathname source-types.symlink); default = null; @@ -294,6 +302,13 @@ rec { }; }; }; + pipe = submodule { + options = { + command = mkOption { + type = absolute-pathname; + }; + }; + }; symlink = submodule { options = { target = mkOption { |