blob: c840b5e9472ae68191a3f0955fe601622c0a0239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ pkgs, lib, config, ... }:
let
cfg = config.hm.shell.foot;
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 = {
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 = true;
include = "${footTheme}";
};
scrollback = {
lines = 10000;
};
};
};
};
}
|