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";
2024-10-16 06:17:06 +04:00
background = "010000";
foreground = "bfbfbf";
2024-10-15 21:14:42 +04:00
2024-10-16 06:17:06 +04:00
# Normal/Regular colors (0-7)
regular0 = "010000";
regular1 = "67514A";
regular2 = "6A5D4E";
regular3 = "9B686A";
regular4 = "9F8975";
regular5 = "BD7D81";
regular6 = "D07789";
regular7 = "bfbfbf";
2024-10-15 21:14:42 +04:00
# Bright colors (8-15)
2024-10-16 06:17:06 +04:00
bright0 = "615050";
bright1 = "67514A";
bright2 = "6A5D4E";
bright3 = "9B686A";
bright4 = "9F8975";
bright5 = "BD7D81";
bright6 = "D07788";
bright7 = "bfbfbf";
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
}