From 48ba1010ab339e1d586d684688a0acb4abbf10ee Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Wed, 5 Dec 2018 11:53:17 +0100 Subject: [PATCH] dunst: switch from attrs to attrsOf (cherry picked from commit b085344b91834004c35d5de7dde0715c870bf424) --- modules/services/dunst.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/services/dunst.nix b/modules/services/dunst.nix index c636439a..0e82d43b 100644 --- a/modules/services/dunst.nix +++ b/modules/services/dunst.nix @@ -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 ''