diff options
author | lassulus <lassulus@lassul.us> | 2017-12-15 09:51:09 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-12-15 09:51:09 +0100 |
commit | a8da65bdeda3dcd5f9cb380b3f57cf146e232c20 (patch) | |
tree | bdf8c8e4f94629b2c2e8fdf95f4f8996d5e220ae | |
parent | 6785c51703820224c84476d58f6cad129230a538 (diff) | |
parent | d27bef335386906eca56eefa0082f9f1bd59db33 (diff) |
Merge remote-tracking branch 'ni/master'
-rw-r--r-- | lib/types.nix | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix index c3b14d8..b857949 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -231,7 +231,12 @@ rec { source = submodule ({ config, ... }: { options = { type = let - types = ["file" "git" "symlink"]; + types = [ + "file" + "git" + "pass" + "symlink" + ]; in mkOption { type = enum types; default = let @@ -255,6 +260,10 @@ rec { type = nullOr git-source; default = null; }; + pass = mkOption { + type = nullOr pass-source; + default = null; + }; symlink = let symlink-target = (symlink-source.getSubOptions "FIXME").target.type; in mkOption { @@ -287,6 +296,17 @@ rec { }; }; + pass-source = submodule { + options = { + dir = mkOption { + type = absolute-pathname; + }; + name = mkOption { + type = pathname; # TODO relative-pathname + }; + }; + }; + symlink-source = submodule { options = { target = mkOption { |