accept strings as source

This commit is contained in:
atagen 2025-07-21 00:47:46 +10:00
parent e7fa12d6f3
commit 8251efc384

View file

@ -43,9 +43,11 @@
bool
nullOr
lines
str
path
int
attrsOf
either
;
fileType = submodule (
{ options, ... }:
@ -63,7 +65,7 @@
};
source = mkOption {
type = nullOr path;
type = nullOr (either path str);
default = null;
description = "Path of the source file or directory";
};