diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
| commit | 791bc419b6dac7c70951981ef6b34cdf85828470 (patch) | |
| tree | 56d0962fdf829ae942feb1344763e54dbc3c89a3 /hm/shell/foot.nix | |
| parent | e60410393cea222b16743a1a87f29c06b9b3543b (diff) | |
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'hm/shell/foot.nix')
| -rw-r--r-- | hm/shell/foot.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/hm/shell/foot.nix b/hm/shell/foot.nix new file mode 100644 index 0000000..9847399 --- /dev/null +++ b/hm/shell/foot.nix @@ -0,0 +1,38 @@ +{ pkgs, lib, config, ... }: +let + cfg = config.szpont.hm.shell.foot; + + footTheme = pkgs.fetchurl { + url = "https://codeberg.org/dnkl/foot/raw/branch/master/themes/gruvbox-dark"; + sha256 = "sha256-ubvnLgDEPGvNrwQdZRNguftg2SF5qcO1iVK0Tb5ZveI="; + }; +in +{ + options.szpont.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"; + }; + }; + }; + }; +} |
