summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-02-04 21:52:14 +0100
committertv <tv@krebsco.de>2023-02-05 02:21:10 +0100
commit1d1ab286f4fda352d3e598a4b2addc3992c02e85 (patch)
tree8a868de160d5bd22523da7dfe3d7f60d9725c469 /lib
parent1600cd00985d819528f811d0d4d6929fd395a56d (diff)
flameshot-once: reinit with flameshot 12.1.0-pre
Diffstat (limited to 'lib')
-rw-r--r--lib/types.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 4bb8c17..5f01ccb 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -7,7 +7,7 @@ let
mkOption mkOptionType optional optionalAttrs optionals range splitString
stringLength substring test testString typeOf;
inherit (lib.types)
- attrsOf bool either enum int lines listOf nullOr path str submodule;
+ addCheck attrsOf bool either enum int lines listOf nullOr path str submodule;
in
rec {
@@ -595,6 +595,9 @@ rec {
};
};
+ flameshot.color =
+ either (addCheck str (test "#[0-9A-Fa-f]{6}")) svg.color-keyword;
+
file-mode = mkOptionType {
name = "file mode";
check = test "[0-7]{4}";