2017-01-07 18:16:26 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
services.dunst = {
|
|
|
|
enable = mkEnableOption "the dunst notification daemon";
|
|
|
|
|
|
|
|
settings = mkOption {
|
|
|
|
type = types.attrs;
|
|
|
|
default = {};
|
|
|
|
description = "Configuration written to ~/.config/dunstrc";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.services.dunst.enable {
|
|
|
|
systemd.user.services.dunst = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Dunst notification daemon";
|
|
|
|
};
|
|
|
|
|
|
|
|
Install = {
|
2017-01-09 21:45:42 +00:00
|
|
|
WantedBy = [ "graphical-session.target" ];
|
2017-01-07 18:16:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
# Type = "dbus";
|
|
|
|
# BusName = "org.freedesktop.Notifications";
|
|
|
|
ExecStart = "${pkgs.dunst}/bin/dunst";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|