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

59 lines
1.4 KiB
Nix
Raw Normal View History

2021-12-18 16:23:14 +01:00
{
2022-03-01 22:19:03 +01:00
lib,
pkgs,
config,
...
}:
with lib; let
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 = {
font = "Iosevka Nerd Font:size=10";
dpi-aware = "yes";
};
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
};
};
};
};
}