Unverified Commit 2ef4f67a authored by Marcel's avatar Marcel
Browse files

nixos/dunst: fix config format

dunst expects config values to be double quoted, toml uses singe quotes,
ini does not uses quotes at all

Upstream dust even calls it file for the config parser. `ini.c`:
https://github.com/dunst-project/dunst/blob/master/src/ini.c
parent 0726a0ec
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
  ...
}:
let
  toml = pkgs.formats.toml { };
  gitIni = pkgs.formats.gitIni { };
  cfg = config.services.dunst;
in
{
@@ -22,7 +22,7 @@ in
    };

    settings = lib.mkOption {
      type = toml.type;
      type = gitIni.type;
      default = { };
      description = "Dunst configuration, see dunst(5)";
      example = lib.literalExpression ''
@@ -69,7 +69,7 @@ in

    environment = {
      systemPackages = [ cfg.package ];
      etc."xdg/dunst/dunstrc".source = toml.generate "dunstrc" cfg.settings;
      etc."xdg/dunst/dunstrc".source = gitIni.generate "dunstrc" cfg.settings;
    };

    services.dbus.packages = [ cfg.package ];