1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-14 15:19:45 +01:00
home-manager/modules/services/dunst.nix

36 lines
737 B
Nix
Raw Normal View History

2017-01-07 19:16:26 +01: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 = {
WantedBy = [ "graphical-session.target" ];
2017-01-07 19:16:26 +01:00
};
Service = {
# Type = "dbus";
# BusName = "org.freedesktop.Notifications";
ExecStart = "${pkgs.dunst}/bin/dunst";
};
};
};
}