add notify option

This commit is contained in:
Robin Appelman 2025-11-11 01:21:47 +01:00
commit ea24479757
7 changed files with 878 additions and 19 deletions

View file

@ -10,7 +10,7 @@ with lib; let
removeNulls = filterAttrs (_: val: val != null);
configFile = format.generate "galton.toml" {
watch = removeNulls {
inherit (cfg) symlink;
inherit (cfg) symlink notify;
remove-duplicates = cfg.removeDuplicates;
};
rule = map removeNulls cfg.rules;
@ -37,6 +37,12 @@ in {
description = "Remove duplicate downloads";
};
notify = mkOption {
type = types.bool;
default = false;
description = "Show notifications for moved downloads";
};
rules = mkOption {
default = [];
type = types.listOf (types.submodule {