nixos-config/home-manager/modules/foot/default.nix

69 lines
1.5 KiB
Nix
Raw Normal View History

2024-02-05 11:46:52 +01:00
{
pkgs,
lib,
config,
...
}:
with lib;
let
2022-03-01 22:19:03 +01:00
cfg = config.eboskma.programs.foot;
in
{
2021-12-18 16:23:14 +01:00
options.eboskma.programs.foot = {
enable = mkEnableOption "activate foot";
server = mkEnableOption "enable foot server";
};
config = mkIf cfg.enable {
programs.foot = {
enable = true;
server.enable = cfg.server;
settings = {
main = {
2023-01-17 23:55:36 +01:00
font = "Iosevka Nerd Font:size=10, Twitter Color Emoji:size=8";
2021-12-18 16:23:14 +01:00
dpi-aware = "yes";
};
2023-11-08 09:28:57 +01:00
scrollback = {
lines = 100000;
};
2021-12-18 16:23:14 +01:00
mouse = {
hide-when-typing = "yes";
};
cursor = {
color = "282a36 f8f8f2";
};
colors = {
alpha = 0.9;
foreground = "f8f8f2";
background = "282a36";
regular0 = "000000"; # black
regular1 = "ff5555"; # red
regular2 = "50fa7b"; # green
regular3 = "f1fa8c"; # yellow
regular4 = "bd93f9"; # blue
regular5 = "ff79c6"; # magenta
regular6 = "8be9fd"; # cyan
regular7 = "bfbfbf"; # white
bright0 = "4d4d4d"; # bright black
bright1 = "ff6e67"; # bright red
bright2 = "5af78e"; # bright green
bright3 = "f4f99d"; # bright yellow
bright4 = "caa9fa"; # bright blue
bright5 = "ff92d0"; # bright magenta
bright6 = "9aedfe"; # bright cyan
bright7 = "e6e6e6"; # bright white
};
};
};
2023-11-20 17:05:18 +01:00
home.packages = [
pkgs.chafa # Enable displaying images through img2sixel
];
2021-12-18 16:23:14 +01:00
};
}