diff --git a/modules/users/modules/default.nix b/modules/users/modules/default.nix index 67f0515..915fce4 100644 --- a/modules/users/modules/default.nix +++ b/modules/users/modules/default.nix @@ -8,6 +8,7 @@ ./feishin/default.nix ./firefox/default.nix ./fontconfig/default.nix + ./foot/default.nix ./obsidian/default.nix ./shell/bash.nix ./shell/fish.nix diff --git a/modules/users/modules/foot/default.nix b/modules/users/modules/foot/default.nix new file mode 100644 index 0000000..c0f73b3 --- /dev/null +++ b/modules/users/modules/foot/default.nix @@ -0,0 +1,25 @@ +{config, lib, pkgs, ... }: + +with lib; +let + cfg = config.modules.foot; +in { + options.modules.foot.enable = mkEnableOption "foot"; + + config = mkIf cfg.enable { + programs.foot = { + enable = true; + settings = { + main = let + font = config.theming.fonts.monospace.name; + size = toString config.theming.fonts.monospace.recommendedSize; + in { + font = mkForce "${font}:style=Regular:size=${size}"; + font-bold = "${font}:style=Bold:size=${size}"; + font-italic = "${font}:style=Italic:size=${size}"; + font-bold-italic = "${font}:style=Bold Italic:size=${size}"; + }; + }; + }; + }; +} \ No newline at end of file diff --git a/users/janMerged.nix b/users/janMerged.nix index fff160b..47c273d 100644 --- a/users/janMerged.nix +++ b/users/janMerged.nix @@ -485,20 +485,20 @@ in { programs.neovim.defaultEditor = true; # Foot setup - programs.foot = { - enable = true; - settings = { - main = let - font = fonts.monospace.name; - size = toString fonts.sizes.terminal; - in { - font = lib.mkForce "${font}:style=Regular:size=${size}"; - font-bold = "${font}:style=Bold:size=${size}"; - font-italic = "${font}:style=Italic:size=${size}"; - font-bold-italic = "${font}:style=Bold Italic:size=${size}"; - }; - }; - }; + # programs.foot = { + # enable = true; + # settings = { + # main = let + # font = fonts.monospace.name; + # size = toString fonts.sizes.terminal; + # in { + # font = lib.mkForce "${font}:style=Regular:size=${size}"; + # font-bold = "${font}:style=Bold:size=${size}"; + # font-italic = "${font}:style=Italic:size=${size}"; + # font-bold-italic = "${font}:style=Bold Italic:size=${size}"; + # }; + # }; + # }; # Fuzzel setup #programs.fuzzel = {