From 0d122d5914c2c055030766e30483b3ce8c2229db Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Fri, 22 Nov 2024 15:46:17 +0100 Subject: [PATCH 1/2] feat(foot): make font family and font size customizable --- modules/home-manager/application/foot/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/application/foot/default.nix b/modules/home-manager/application/foot/default.nix index 0d1255e..1e65d1a 100644 --- a/modules/home-manager/application/foot/default.nix +++ b/modules/home-manager/application/foot/default.nix @@ -12,6 +12,17 @@ in default = 2500; description = "numbers of scrollback lines in history"; }; + font-family = mkOption { + type = types.str; + default = "Fira Code Nerd Font"; + description = "font family used in Foot"; + }; + + font-size = mkOption { + type = types.str; + default = "10"; + description = "font size used in Foot"; + }; }; config = mkIf cfg.enable { @@ -19,7 +30,7 @@ in enable = true; settings = { main = { - font = "Fira Code Nerd Font Mono:size=10"; + font = "${cfg.font-family}:size=${cfg.font-size}"; pad = "5x5 center"; }; mouse = { From a379cfc4f400a64425d8ff0b50aa1c172a89ba1b Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Fri, 22 Nov 2024 15:46:40 +0100 Subject: [PATCH 2/2] chore(work): configure Foot font --- hosts/work/home-config.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/work/home-config.nix b/hosts/work/home-config.nix index 6059fb3..985939a 100644 --- a/hosts/work/home-config.nix +++ b/hosts/work/home-config.nix @@ -2,7 +2,10 @@ config.modules = { application = { zathura.enable = true; - foot.enable = true; + foot = { + enable = true; + font-size = "10.5"; + }; }; audio.cmus.enable = true; cli = {