1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/modules/services/systembus-notify.nix
Austin Horstman 03fdb31290
treewide: add missing package options (#7575)
Add options to support more flexible module configurations.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-29 12:20:22 -05:00

32 lines
758 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.systembus-notify;
in
{
meta.maintainers = [ lib.maintainers.asymmetric ];
options = {
services.systembus-notify = {
enable = lib.mkEnableOption "systembus-notify - system bus notification daemon";
package = lib.mkPackageOption pkgs "systembus-notify" { };
};
};
config = lib.mkIf config.services.systembus-notify.enable {
assertions = [
(lib.hm.assertions.assertPlatform "services.systembus-notify" pkgs lib.platforms.linux)
];
systemd.user.services.systembus-notify = {
Unit.Description = "systembus-notify daemon";
Install.WantedBy = [ "graphical-session.target" ];
Service.ExecStart = lib.getExe cfg.package;
};
};
}