at 25.11-pre 661 B view raw
1{ 2 config, 3 lib, 4 pkgs, 5 ... 6}: 7 8let 9 cfg = config.services.systembus-notify; 10 11 inherit (lib) mkEnableOption mkIf; 12 13in 14{ 15 options.services.systembus-notify = { 16 enable = mkEnableOption '' 17 System bus notification support 18 19 WARNING: enabling this option (while convenient) should *not* be done on a 20 machine where you do not trust the other users as it allows any other 21 local user to DoS your session by spamming notifications 22 ''; 23 }; 24 25 config = mkIf cfg.enable { 26 systemd = { 27 packages = with pkgs; [ systembus-notify ]; 28 29 user.services.systembus-notify.wantedBy = [ "graphical-session.target" ]; 30 }; 31 }; 32}