dunst: use DAG ordered generator helper

This commit is contained in:
Austin Horstman
2026-06-18 07:59:18 -05:00
parent b9a29e51c5
commit 5ccd408ca7
+4 -5
View File
@@ -146,12 +146,11 @@ in
xdg.configFile."dunst/dunstrc" = lib.mkIf (cfg.settings != { }) {
text =
let
sortedSettings = lib.hm.dag.topoSort cfg.settings;
sections =
sortedSettings.result
or (abort "Dependency cycle in dunst settings: ${builtins.toJSON sortedSettings}");
sections = lib.hm.generators.sortDAGEntries {
cycleErrorMessage = "Dependency cycle in dunst settings";
} cfg.settings;
in
lib.concatStringsSep "\n" (map (section: toDunstIni { ${section.name} = section.data; }) sections);
lib.concatStringsSep "\n" (map (section: toDunstIni { ${section.name} = section.value; }) sections);
};
services.dunst.settings.global.icon_path =