add foot terminal

This commit is contained in:
datsudo 2025-06-02 22:45:36 +08:00
parent 6caed74075
commit fcf4605bd9
3 changed files with 66 additions and 0 deletions

35
user/subs/foot.nix Normal file
View File

@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
let
cfg = config.subs.foot;
in
{
options = {
subs.foot.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
};
config = lib.mkIf cfg.enable {
programs.foot = {
enable = true;
server.enable = true;
settings = {
main = {
include = "${pkgs.foot}/share/foot/themes/dracula";
term = "xterm-256color";
font = "Iosevka Nerd Font:size=15";
dpi-aware = "yes";
};
bell = {
system = "no";
};
scrollback = {
lines = 10000;
};
};
};
};
}

View File

@ -8,6 +8,7 @@ in
imports = [ imports = [
./subs/ghostty.nix ./subs/ghostty.nix
./subs/alacritty.nix ./subs/alacritty.nix
./subs/foot.nix
]; ];
options.terminals = { options.terminals = {
@ -23,11 +24,16 @@ in
default = true; default = true;
type = types.bool; type = types.bool;
}; };
foot.enable = mkOption {
default = false;
type = types.bool;
};
}; };
config = { config = {
subs.ghostty.enable = cfg.ghostty.enable; subs.ghostty.enable = cfg.ghostty.enable;
subs.alacritty.enable = cfg.alacritty.enable; subs.alacritty.enable = cfg.alacritty.enable;
subs.foot.enable = cfg.foot.enable;
home.packages = mkIf cfg.xfceTerminal.enable [ pkgs.xfce.xfce4-terminal ]; home.packages = mkIf cfg.xfceTerminal.enable [ pkgs.xfce.xfce4-terminal ];

View File

@ -19,6 +19,10 @@ in
default = true; default = true;
type = lib.types.bool; type = lib.types.bool;
}; };
mako.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
}; };
config = { config = {
@ -37,5 +41,26 @@ in
}; };
}; };
}; };
services.mako = {
enable = cfg.mako.enable;
settings = {
sort = "-time";
layer = "overlay";
background-color = "#1E1E1E";
border-color = "#838383";
border-size = 1;
border-radius = 5;
max-icon-size = 64;
padding = 10;
font = "Inter 10";
default-timeout = 5000;
"urgency=high" = {
background-color = "#EF5350";
border-color = "#22DA6E";
default-timeout = 0;
};
};
};
}; };
} }