1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-02 11:28:32 +02:00
home-manager/modules/services/dunst.nix
Robert Helgesson d7d02c3ce8
Initial import
2017-01-14 13:15:24 +01:00

36 lines
724 B
Nix

{ 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 = [ "xorg.target" ];
};
Service = {
# Type = "dbus";
# BusName = "org.freedesktop.Notifications";
ExecStart = "${pkgs.dunst}/bin/dunst";
};
};
};
}