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)
|
inherit (lib)
|
||||||
mkIf
|
mkIf
|
||||||
mkMerge
|
mkMerge
|
||||||
mkOption
|
|
||||||
mkEnableOption
|
mkEnableOption
|
||||||
mkPackageOption
|
mkPackageOption
|
||||||
types
|
|
||||||
;
|
;
|
||||||
|
|
||||||
cfg = config.programs.nexus;
|
cfg = config.programs.nexus;
|
||||||
|
|
@ -23,15 +21,7 @@ in
|
||||||
enable = mkEnableOption "Nexus, a simple and user-friendly Matrix client";
|
enable = mkEnableOption "Nexus, a simple and user-friendly Matrix client";
|
||||||
package = mkPackageOption self.packages.${pkgs.stdenv.hostPlatform.system} "nexus" { };
|
package = mkPackageOption self.packages.${pkgs.stdenv.hostPlatform.system} "nexus" { };
|
||||||
|
|
||||||
enableNotifications = mkOption {
|
enableNotifications = mkEnableOption "notifications support via UnifiedPush";
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable (mkMerge [
|
config = mkIf cfg.enable (mkMerge [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue