1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-15 17:50:53 +00:00
home-manager/modules/services/dunst.nix

37 lines
875 B
Nix
Raw Normal View History

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 {
2017-01-19 23:20:25 +00:00
home.file.".local/share/dbus-1/services/org.knopwob.dunst.service".source =
"${pkgs.dunst}/share/dbus-1/services/org.knopwob.dunst.service";
2017-01-07 18:16:26 +00:00
2017-01-19 23:20:25 +00:00
systemd.user.services.dunst = {
Unit = {
Description = "Dunst notification daemon";
Requires = "graphical-session.target";
After = "graphical-session.target";
};
2017-01-07 18:16:26 +00:00
2017-01-19 23:20:25 +00:00
Service = {
Type = "dbus";
BusName = "org.freedesktop.Notifications";
ExecStart = "${pkgs.dunst}/bin/dunst";
};
2017-01-07 18:16:26 +00:00
};
};
}