2021-11-13 22:00:47 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
meta.maintainers = [ maintainers.asymmetric ];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.systembus-notify = {
|
2023-07-01 01:30:13 +02:00
|
|
|
enable = mkEnableOption
|
|
|
|
(lib.mdDoc "systembus-notify - system bus notification daemon");
|
2021-11-13 22:00:47 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.services.systembus-notify.enable {
|
|
|
|
assertions = [
|
|
|
|
(hm.assertions.assertPlatform "services.systembus-notify" pkgs
|
|
|
|
platforms.linux)
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.user.services.systembus-notify = {
|
|
|
|
Unit.Description = "systembus-notify daemon";
|
|
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
|
|
|
Service.ExecStart = "${pkgs.systembus-notify}/bin/systembus-notify";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|