blob: 502e1433db007642ca727e753a3e1e091db9de43 (
plain) (
blame)
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
|
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.nixfiles.modules.foot;
in
{
options.nixfiles.modules.foot.enable = mkEnableOption "Foot terminal emulator";
config = mkIf cfg.enable {
hm = {
home.packages = with pkgs; [ libsixel ];
programs.foot = {
enable = true;
settings = {
main = {
utmp-helper = "${pkgs.libutempter}/lib/utempter/utempter";
pad =
let
n = toString config.stylix.fonts.sizes.terminal;
in
"${n}x${n}";
};
scrollback.lines = pow 2 14;
};
};
};
};
}
|