Clean up mako.nix

This commit is contained in:
buffet 2022-08-13 23:47:41 +00:00
parent 760a6d467e
commit d6f772899b

View file

@ -1,23 +1,21 @@
{pkgs, ...}: { {pkgs, ...}: {
home-manager.users.buffet = { home-manager.users.buffet = {
home.packages = [pkgs.libnotify]; # TODO: is this required?
programs.mako = let programs.mako = let
colors = import ../theme.nix; theme = import ../theme.nix;
in { in {
enable = true; enable = true;
anchor = "top-right"; anchor = "top-right";
backgroundColor = colors.primary.background; backgroundColor = theme.primary.background;
borderColor = colors.wm.focused.border; borderColor = theme.wm.focused.border;
progressColor = colors.primary.foreground; progressColor = theme.primary.foreground;
textColor = colors.primary.foreground; textColor = theme.primary.foreground;
borderSize = 1; borderSize = 1;
defaultTimeout = 4000; defaultTimeout = 4000;
font = with import ../theme.nix; "${font.family} ${toString font.size}"; font = with theme; "${font.family} ${toString font.size}";
}; };
}; };
} }