summaryrefslogtreecommitdiffstats
path: root/lib/types.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-02 02:18:54 +0000
committertv <tv@krebsco.de>2026-12-02 02:18:54 +0000
commite1b4d6373e96ab22b36119ac689d72ced9164c47 (patch)
tree7e590e95ba5b0323f4c3bc8c6d0c7ca340945491 /lib/types.nix
parente69079eb1ecd2c779dfec93b66e3bd180889dd68 (diff)
flameshot-once: flameshot 13.3.0, configured by a module
flameshot-once starts flameshot's daemon and its GUI, with flameshot.ini from config.nix's settings, and with imgur, uploads to its createUrl and an xdg-open that opens or deletes them. flameshot gets the history and applauncher patches, too. The buttons option, which was commented out, is left out, and with it the tools that listed the button types for it.
Diffstat (limited to 'lib/types.nix')
-rw-r--r--lib/types.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 4bb8c173..5f01ccb5 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}";
[cgit] Unable to lock slot /tmp/cgit/a6100000.lock: Permission denied (13)