mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
dunst: support dbus activation
This commit is contained in:
parent
550d0e81c9
commit
35e0a339f8
1 changed files with 13 additions and 12 deletions
|
@ -16,20 +16,21 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.services.dunst.enable {
|
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 = {
|
systemd.user.services.dunst = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Dunst notification daemon";
|
Description = "Dunst notification daemon";
|
||||||
};
|
Requires = "graphical-session.target";
|
||||||
|
After = "graphical-session.target";
|
||||||
|
};
|
||||||
|
|
||||||
Install = {
|
Service = {
|
||||||
WantedBy = [ "graphical-session.target" ];
|
Type = "dbus";
|
||||||
};
|
BusName = "org.freedesktop.Notifications";
|
||||||
|
ExecStart = "${pkgs.dunst}/bin/dunst";
|
||||||
Service = {
|
};
|
||||||
# Type = "dbus";
|
|
||||||
# BusName = "org.freedesktop.Notifications";
|
|
||||||
ExecStart = "${pkgs.dunst}/bin/dunst";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue