1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 08:28:30 +02:00

dunst: support dbus activation

This commit is contained in:
Robert Helgesson 2017-01-20 00:20:25 +01:00
parent 550d0e81c9
commit 35e0a339f8
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -16,20 +16,21 @@ with lib;
};
config = mkIf config.services.dunst.enable {
home.file.".local/share/dbus-1/services/org.knopwob.dunst.service".source =
"${pkgs.dunst}/share/dbus-1/services/org.knopwob.dunst.service";
systemd.user.services.dunst = {
Unit = {
Description = "Dunst notification daemon";
};
Unit = {
Description = "Dunst notification daemon";
Requires = "graphical-session.target";
After = "graphical-session.target";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
# Type = "dbus";
# BusName = "org.freedesktop.Notifications";
ExecStart = "${pkgs.dunst}/bin/dunst";
};
Service = {
Type = "dbus";
BusName = "org.freedesktop.Notifications";
ExecStart = "${pkgs.dunst}/bin/dunst";
};
};
};
}