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

96 lines
2.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";
2024-09-10 19:27:46 +02:00
fontSize = mkOption {
description = "font size";
type = types.int;
default = 12;
};
2021-12-18 16:23:14 +01:00
};
config = mkIf cfg.enable {
programs.foot = {
enable = true;
server.enable = cfg.server;
settings = {
main = {
2024-09-10 19:27:46 +02:00
font = "Iosevka Nerd Font:size=${toString cfg.fontSize}, Twitter Color Emoji:size=${toString cfg.fontSize}";
dpi-aware = "no";
2021-12-18 16:23:14 +01:00
};
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;
2024-04-12 08:47:52 +02:00
# Dracula
# 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
# Catppuccin Mocha
2024-05-17 22:27:04 +02:00
# foreground = "cdd6f4"; # Text
# background = "1e1e2e"; # Base
# regular0 = "45475a"; # Surface 1
# regular1 = "f38ba8"; # red
# regular2 = "a6e3a1"; # green
# regular3 = "f9e2af"; # yellow
# regular4 = "89b4fa"; # blue
# regular5 = "f5c2e7"; # pink
# regular6 = "94e2d5"; # teal
# regular7 = "bac2de"; # Subtext 1
# bright0 = "585b70"; # Surface 2
# bright1 = "f38ba8"; # red
# bright2 = "a6e3a1"; # green
# bright3 = "f9e2af"; # yellow
# bright4 = "89b4fa"; # blue
# bright5 = "f5c2e7"; # pink
# bright6 = "94e2d5"; # teal
# bright7 = "a6adc8"; # Subtext 0
2021-12-18 16:23:14 +01:00
};
};
};
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
};
}