1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

systembus-notify: add module

This commit is contained in:
Lorenzo Manacorda 2021-11-13 22:00:47 +01:00 committed by Robert Helgesson
parent 7ec50b1f77
commit 02426bb52f
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
4 changed files with 38 additions and 0 deletions

2
.github/CODEOWNERS vendored
View file

@ -390,6 +390,8 @@
/modules/services/volnoti.nix @IvanMalison
/modules/services/systembus-notify.nix @asymmetric
/modules/targets/darwin @midchildan
/tests/modules/targets-darwin @midchildan

View file

@ -2320,6 +2320,14 @@ in
A new module is available: 'services.opensnitch-ui'.
'';
}
{
time = "2021-12-21T22:17:30+00:00";
condition = hostPlatform.isLinux;
message = ''
A new module is available: 'services.systembus-notify'.
'';
}
];
};
}

View file

@ -220,6 +220,7 @@ let
./services/status-notifier-watcher.nix
./services/sxhkd.nix
./services/syncthing.nix
./services/systembus-notify.nix
./services/taffybar.nix
./services/tahoe-lafs.nix
./services/taskwarrior-sync.nix

View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
with lib;
{
meta.maintainers = [ maintainers.asymmetric ];
options = {
services.systembus-notify = {
enable =
mkEnableOption "systembus-notify - system bus notification daemon";
};
};
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";
};
};
}