use mkEnableOption for enableNotifications
This commit is contained in:
parent
1cfea5a819
commit
f40dd22277
1 changed files with 1 additions and 11 deletions
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Reference in a new issue