make sep/delim customisable
This commit is contained in:
parent
6d98e1639b
commit
c5c240ca2e
8 changed files with 60 additions and 26 deletions
|
@ -19,6 +19,16 @@ in {
|
|||
default = [];
|
||||
description = "palette to use in comma separated RGB hex eg. #0f0f0f";
|
||||
};
|
||||
separators = mkOption {
|
||||
type = with types; str;
|
||||
default = "";
|
||||
description = "char list of separators to use";
|
||||
};
|
||||
delimiters = mkOption {
|
||||
type = with types; str;
|
||||
default = "";
|
||||
description = "char list of delimiters to use";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -34,6 +44,10 @@ in {
|
|||
(serialise.${typeOf cfg.pattern}
|
||||
cfg.pattern);
|
||||
CULR_PALETTE = mkIf (cfg.palette != []) (concatStringsSep ";" cfg.palette);
|
||||
CULR_SEP = mkIf (cfg.separators != "") (cfg.separators);
|
||||
CULR_DELIM = mkIf (cfg.delimiters != "") (cfg.delimiters);
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue