dunst: switch from attrs to attrsOf

(cherry picked from commit b085344b91)
This commit is contained in:
Nikita Uvarov 2018-12-05 11:53:17 +01:00 committed by Robert Helgesson
parent b837f8ae41
commit 48ba1010ab
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -5,6 +5,9 @@ with lib;
let
cfg = config.services.dunst;
eitherStrBoolIntList = with types; either str (either bool (either int (listOf str)));
toDunstIni = generators.toINI {
mkKeyValue = key: value:
let
@ -61,7 +64,7 @@ in
};
settings = mkOption {
type = types.attrsOf types.attrs;
type = with types; attrsOf (attrsOf eitherStrBoolIntList);
default = {};
description = "Configuration written to ~/.config/dunstrc";
example = literalExample ''