mirror of
https://codeberg.org/icewind/galton.git
synced 2026-06-03 18:34:08 +02:00
add notify option
This commit is contained in:
parent
b423323473
commit
ea24479757
7 changed files with 878 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue