From 8251efc384417fe125fbe28509a7dd2ef9d924b7 Mon Sep 17 00:00:00 2001 From: atagen Date: Mon, 21 Jul 2025 00:47:46 +1000 Subject: [PATCH] accept strings as source --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 43c5853..16d0295 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; };