fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Lorenzo Manacordasystembus-notify: add module02426bb5

master
668 B27 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  meta.maintainers = [ maintainers.asymmetric ];
7
8  options = {
9    services.systembus-notify = {
10      enable =
11        mkEnableOption "systembus-notify - system bus notification daemon";
12    };
13  };
14
15  config = mkIf config.services.systembus-notify.enable {
16    assertions = [
17      (hm.assertions.assertPlatform "services.systembus-notify" pkgs
18        platforms.linux)
19    ];
20
21    systemd.user.services.systembus-notify = {
22      Unit.Description = "systembus-notify daemon";
23      Install.WantedBy = [ "graphical-session.target" ];
24      Service.ExecStart = "${pkgs.systembus-notify}/bin/systembus-notify";
25    };
26  };
27}