From ea305e701c24f440285fd13618fa77e88a648809 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Sat, 15 Jun 2024 19:32:38 +0200 Subject: [PATCH] implement mako via home manager service --- modules/home/hyprland/mako/default.nix | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/modules/home/hyprland/mako/default.nix b/modules/home/hyprland/mako/default.nix index 3b5e61e..04d25bd 100644 --- a/modules/home/hyprland/mako/default.nix +++ b/modules/home/hyprland/mako/default.nix @@ -21,24 +21,18 @@ in }; config = lib.mkIf cfg.enable { - home.packages = with pkgs; [ - mako - libnotify - ]; - - xdg.configFile."mako/config" = { - text = '' - background-color=#${palette.base00} - text-color=#${palette.base05} - border-color=#${palette.base0D} - progress-color=over #${palette.base02} + home.packages = with pkgs; [ libnotify ]; + services.mako = { + enable = true; + bakgroundColor = "#${palette.base00}"; + textColor = "#${palette.base05}"; + borderColor = "#${palette.base0D}"; + progressColor = "over #${palette.base02}"; + extraConfig = '' [urgency=high] border-color=#${palette.base09} ''; - onChange = '' - ${pkgs.busybox}/bin/pkill -SIGUSR2 mako - ''; }; }; }