nixos/modules/desktop/foot/default.nix

56 lines
1.4 KiB
Nix
Raw Normal View History

2024-10-15 18:57:48 +04:00
{ options, config, lib, pkgs, ... }:
let cfg = config.modules.desktop.foot;
2024-08-03 19:55:05 +04:00
in {
2024-10-15 18:57:48 +04:00
options.modules.desktop.foot = { enable = lib.mkEnableOption false; };
2024-08-03 19:55:05 +04:00
config = lib.mkIf cfg.enable {
2024-10-15 18:57:48 +04:00
users.users.sako.packages = with pkgs; [ foot ];
2024-08-03 20:27:30 +04:00
2024-10-15 18:57:48 +04:00
home-manager.users.sako = { pkgs, ... }: {
programs.foot = {
enable = true;
server.enable = false;
settings = {
main = {
term = "xterm-256color";
font = "JetBrainsMono NF:size=12";
};
scrollback = { lines = 1000; };
cursor = {
style = "block";
blink = "yes";
blink-rate = "1000";
};
mouse = { hide-when-typing = "yes"; };
2024-10-15 21:14:42 +04:00
colors = {
alpha = "1.0";
background = "513942";
foreground = "fbfffc";
# Normal/Regular colors
regular0 = "191516";
regular1 = "ea4c4c";
regular2 = "4cea50";
regular3 = "df7620";
regular4 = "4ca5ea";
regular5 = "b24cea";
regular6 = "33eabf";
regular7 = "A3003E";
2024-10-15 21:14:42 +04:00
# Bright colors (8-15)
bright0 = "C3A5AC";
2024-10-15 21:14:42 +04:00
bright1 = "ff5353";
bright2 = "99ff69";
bright3 = "df8f4d";
bright4 = "88c1ea";
bright5 = "d6a0ea";
bright6 = "9dead8";
bright7 = "FF0061";
2024-10-15 21:14:42 +04:00
};
2024-10-15 18:57:48 +04:00
};
2024-08-03 20:27:30 +04:00
};
};
};
2024-08-03 19:55:05 +04:00
}