use mkEnableOption for enableNotifications

This commit is contained in:
Henry Hiles 2026-09-20 17:14:56 -04:00
commit f40dd22277
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -10,10 +10,8 @@ let
inherit (lib)
mkIf
mkMerge
mkOption
mkEnableOption
mkPackageOption
types
;
cfg = config.programs.nexus;
@ -23,15 +21,7 @@ in
enable = mkEnableOption "Nexus, a simple and user-friendly Matrix client";
package = mkPackageOption self.packages.${pkgs.stdenv.hostPlatform.system} "nexus" { };
enableNotifications = mkOption {
description = ''
Whether to enable push notifications support via UnifiedPush, installing
{manpage}`kunifiedpush` and registering its systemd and D-Bus units.
'';
type = types.bool;
default = false;
example = true;
};
enableNotifications = mkEnableOption "notifications support via UnifiedPush";
};
config = mkIf cfg.enable (mkMerge [