types.source: add pass type
This commit is contained in:
parent
92a34559ee
commit
51a30f41cf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user