mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-28 19:16:14 +01:00
21 lines
503 B
Nix
21 lines
503 B
Nix
|
{ 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" ]; };
|
||
|
};
|
||
|
}
|