mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
dunst: add systemd target option
This commit is contained in:
parent
b2ac1d2c32
commit
be1b32025c
1 changed files with 11 additions and 0 deletions
|
@ -64,6 +64,15 @@ in {
|
|||
description = "Package providing {command}`dunst`.";
|
||||
};
|
||||
|
||||
systemdTarget = mkOption {
|
||||
type = types.str;
|
||||
default = "graphical-session.target";
|
||||
example = "sway-session.target";
|
||||
description = ''
|
||||
Systemd target to bind to.
|
||||
'';
|
||||
};
|
||||
|
||||
configFile = mkOption {
|
||||
type = with types; either str path;
|
||||
default = "${config.xdg.configHome}/dunst/dunstrc";
|
||||
|
@ -192,6 +201,8 @@ in {
|
|||
Environment = optionalString (cfg.waylandDisplay != "")
|
||||
"WAYLAND_DISPLAY=${cfg.waylandDisplay}";
|
||||
};
|
||||
|
||||
Install.WantedBy = [ cfg.systemdTarget ];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue