11 unit = ini.generate "systembus-notify.service" {
13 Description = "system bus notification daemon";
18 ExecStart = "@out@/bin/systembus-notify";
20 # NB. We cannot `ProtectHome`, or it would block session dbus access.
21 InaccessiblePaths = "/home";
22 ReadOnlyPaths = "/run/user";
23 ProtectSystem = "strict";
24 Restart = "on-failure";
25 Slice = "background.slice";
30 stdenv.mkDerivation rec {
31 pname = "systembus-notify";
34 src = fetchFromGitHub {
36 repo = "systembus-notify";
38 sha256 = "sha256-WzuBw7LXW54CCMgFE9BSJ2skxaz4IA2BcBny63Ihtt0=";
41 buildInputs = [ systemd ];
46 install -Dm555 -t $out/bin systembus-notify
47 install -Dm444 -t $out/share/systembus-notify systembus-notify.desktop
49 install -d $out/lib/systemd/user
50 substitute ${unit} $out/lib/systemd/user/${unit.name} \
56 # requires a running dbus instance
60 description = "System bus notification daemon";
61 homepage = "https://github.com/rfjakob/systembus-notify";
62 license = licenses.mit;
63 maintainers = with maintainers; [ peterhoeg ];
64 platforms = platforms.linux;
65 mainProgram = "systembus-notify";