dotfiles/home-manager/modules/dunst/default.nix

20 lines
493 B
Nix
Raw Normal View History

{pkgs, ...}: {
home.file.".config/dunstrc".source = ./dunstrc;
systemd.user.services.dunst = {
Unit = {
Description = "Dunst notification daemon";
After = ["graphical-session-pre.target"];
PartOf = ["graphical-session.target"];
};
Service = {
Type = "dbus";
BusName = "org.freedesktop.Notifications";
ExecStart = "${pkgs.dunst}/bin/dunst -config ~/.config/dunstrc";
};
Install = {WantedBy = ["graphical-session.target"];};
};
}