From a8db2b473c4778a426e493b4a1e95bbe7002583b Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Thu, 12 May 2022 14:01:13 -0600 Subject: [PATCH] mako: add package option --- modules/services/mako.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/services/mako.nix b/modules/services/mako.nix index 67c11e31..88068e0b 100644 --- a/modules/services/mako.nix +++ b/modules/services/mako.nix @@ -15,6 +15,13 @@ in { Mako, lightweight notification daemon for Wayland ''; + package = mkOption { + type = types.package; + default = pkgs.mako; + defaultText = literalExpression "pkgs.mako"; + description = "The mako package to use."; + }; + maxVisible = mkOption { default = 5; type = types.nullOr types.int; @@ -295,11 +302,11 @@ in { assertions = [ (hm.assertions.assertPlatform "services.mako" pkgs platforms.linux) ]; - home.packages = [ pkgs.mako ]; + home.packages = [ cfg.package ]; xdg.configFile."mako/config" = { onChange = '' - ${pkgs.mako}/bin/makoctl reload || true + ${cfg.package}/bin/makoctl reload || true ''; text = '' ${optionalInteger "max-visible" cfg.maxVisible}