mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
mako: add package option (#2955)
This commit is contained in:
parent
f735a8502b
commit
273598f53e
1 changed files with 9 additions and 2 deletions
|
@ -15,6 +15,13 @@ in {
|
||||||
Mako, lightweight notification daemon for Wayland
|
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 {
|
maxVisible = mkOption {
|
||||||
default = 5;
|
default = 5;
|
||||||
type = types.nullOr types.int;
|
type = types.nullOr types.int;
|
||||||
|
@ -295,11 +302,11 @@ in {
|
||||||
assertions =
|
assertions =
|
||||||
[ (hm.assertions.assertPlatform "services.mako" pkgs platforms.linux) ];
|
[ (hm.assertions.assertPlatform "services.mako" pkgs platforms.linux) ];
|
||||||
|
|
||||||
home.packages = [ pkgs.mako ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."mako/config" = {
|
xdg.configFile."mako/config" = {
|
||||||
onChange = ''
|
onChange = ''
|
||||||
${pkgs.mako}/bin/makoctl reload || true
|
${cfg.package}/bin/makoctl reload || true
|
||||||
'';
|
'';
|
||||||
text = ''
|
text = ''
|
||||||
${optionalInteger "max-visible" cfg.maxVisible}
|
${optionalInteger "max-visible" cfg.maxVisible}
|
||||||
|
|
Loading…
Reference in a new issue