From bd0047d2c4826214bcedf4c1a57d010bb407034d Mon Sep 17 00:00:00 2001 From: adikro Date: Tue, 23 Dec 2025 21:28:56 +0100 Subject: .. --- hm/shell/foot.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 hm/shell/foot.nix (limited to 'hm/shell') diff --git a/hm/shell/foot.nix b/hm/shell/foot.nix new file mode 100644 index 0000000..a9c3eac --- /dev/null +++ b/hm/shell/foot.nix @@ -0,0 +1,37 @@ +{ 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 = ""; + }; +in +{ + options.hm.shell.foot = { + enable = lib.mkEnableOption "foot terminal emulator"; + fontSize = lib.mkOption { + type = lib.types.int; + default = 14; + 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}"; + }; + scrollback = { + lines = 10000; + }; + mouse = { + hide-when-typing = "yes"; + }; + }; + }; + }; +} -- cgit v1.3