mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 02:39:45 +01:00
dd0e71d686
Also make sure graphical-session.target is generated.
35 lines
737 B
Nix
35 lines
737 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 = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Service = {
|
|
# Type = "dbus";
|
|
# BusName = "org.freedesktop.Notifications";
|
|
ExecStart = "${pkgs.dunst}/bin/dunst";
|
|
};
|
|
};
|
|
};
|
|
}
|