mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
dunst: switch from attrs to attrsOf
This commit is contained in:
parent
c108eaba42
commit
b085344b91
1 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,9 @@ with lib;
|
||||||
let
|
let
|
||||||
|
|
||||||
cfg = config.services.dunst;
|
cfg = config.services.dunst;
|
||||||
|
|
||||||
|
eitherStrBoolIntList = with types; either str (either bool (either int (listOf str)));
|
||||||
|
|
||||||
toDunstIni = generators.toINI {
|
toDunstIni = generators.toINI {
|
||||||
mkKeyValue = key: value:
|
mkKeyValue = key: value:
|
||||||
let
|
let
|
||||||
|
@ -61,7 +64,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = types.attrsOf types.attrs;
|
type = with types; attrsOf (attrsOf eitherStrBoolIntList);
|
||||||
default = {};
|
default = {};
|
||||||
description = "Configuration written to ~/.config/dunstrc";
|
description = "Configuration written to ~/.config/dunstrc";
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
|
|
Loading…
Reference in a new issue