1 { config, lib, pkgs, ... }:
4 cfg = config.services.systembus-notify;
6 inherit (lib) mkEnableOption mkIf;
10 options.services.systembus-notify = {
11 enable = mkEnableOption ''
12 System bus notification support
14 WARNING: enabling this option (while convenient) should *not* be done on a
15 machine where you do not trust the other users as it allows any other
16 local user to DoS your session by spamming notifications
20 config = mkIf cfg.enable {
22 packages = with pkgs; [ systembus-notify ];
24 user.services.systembus-notify.wantedBy = [ "graphical-session.target" ];