diff options
Diffstat (limited to 'hm/shell/foot.nix')
| -rw-r--r-- | hm/shell/foot.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/hm/shell/foot.nix b/hm/shell/foot.nix index a9c3eac..c840b5e 100644 --- a/hm/shell/foot.nix +++ b/hm/shell/foot.nix @@ -1,11 +1,14 @@ { pkgs, lib, config, ... }: + let cfg = config.hm.shell.foot; - footTheme = pkgs.fetchurl { - url = "https://codeberg.org/dnkl/foot/src/branch/master/themes/gruvbox-dark"; - sha256 = ""; - }; + footTheme = pkgs.runCommand "gruvbox-dark" { } '' + sed 's/\[colors-dark\]/\[colors\]/g' ${pkgs.fetchurl { + url = "https://codeberg.org/dnkl/foot/raw/branch/master/themes/gruvbox-dark"; + sha256 = "sha256-hlmLklG/vAEDy8I+k13+o4ZR6Cq6lTxOconjf9M75eo="; + }} > $out + ''; in { options.hm.shell.foot = { @@ -16,21 +19,19 @@ in description = "Font size for the foot terminal"; }; }; + config = lib.mkIf cfg.enable { programs.foot = { enable = true; settings = { main = { font = "JetBrainsMonoNFM-Regular:size=${toString cfg.fontSize}"; - box-drawings-uses-font-glyphs = "yes"; - include = "${footTheme}"; + box-drawings-uses-font-glyphs = true; + include = "${footTheme}"; }; scrollback = { lines = 10000; }; - mouse = { - hide-when-typing = "yes"; - }; }; }; }; |
