From 9102c1c7e0cb0a42adf11fa3af888e9501afd2a7 Mon Sep 17 00:00:00 2001 From: liv Date: Sat, 10 Aug 2024 22:58:32 +0200 Subject: [PATCH] configure mako --- home/common/desktop/default.nix | 1 + home/common/desktop/firefox.nix | 13 +++++++++++++ home/common/desktop/gtk.nix | 5 ----- home/common/desktop/mako.nix | 13 +++++++++++++ 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 home/common/desktop/mako.nix diff --git a/home/common/desktop/default.nix b/home/common/desktop/default.nix index 9d84690..ea08710 100644 --- a/home/common/desktop/default.nix +++ b/home/common/desktop/default.nix @@ -4,6 +4,7 @@ ./firefox.nix ./kitty.nix ./gtk.nix + ./mako.nix ]; home.packages = with pkgs; [ diff --git a/home/common/desktop/firefox.nix b/home/common/desktop/firefox.nix index ca60738..641e507 100644 --- a/home/common/desktop/firefox.nix +++ b/home/common/desktop/firefox.nix @@ -1,5 +1,18 @@ { inputs, config, pkgs, ... }: { + home.packages = with pkgs; [ + fira + ]; programs.firefox = { enable = true; + + profiles ={ + "user" = { + userChrome = '' + * { + font-family: "Fira Sans"; + } + ''; + }; + }; }; } diff --git a/home/common/desktop/gtk.nix b/home/common/desktop/gtk.nix index 32eff3c..a4e6648 100644 --- a/home/common/desktop/gtk.nix +++ b/home/common/desktop/gtk.nix @@ -1,10 +1,5 @@ { config, pkgs, inputs, lib, ... }: { gtk = { enable = true; - font = { - name = config.fontProfiles.regular.family; - package = config.fontProfiles.regular.package; - size = 12; - }; }; } diff --git a/home/common/desktop/mako.nix b/home/common/desktop/mako.nix new file mode 100644 index 0000000..5e90adc --- /dev/null +++ b/home/common/desktop/mako.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: { + services.mako = { + enable = true; + font = lib.mkForce "${config.fontProfiles.regular.family} 12"; + padding = "10,20"; + anchor = "top-center"; + width = 400; + height = 150; + borderSize = 2; + defaultTimeout = 12000; + layer = "overlay"; + }; +}