foot: Make font size configurable

This commit is contained in:
Erwin Boskma 2024-09-10 19:27:46 +02:00
parent f56e6f5b9b
commit 88267a0897
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 7 additions and 1 deletions

View file

@ -12,6 +12,11 @@ in
options.eboskma.programs.foot = { options.eboskma.programs.foot = {
enable = mkEnableOption "activate foot"; enable = mkEnableOption "activate foot";
server = mkEnableOption "enable foot server"; server = mkEnableOption "enable foot server";
fontSize = mkOption {
description = "font size";
type = types.int;
default = 12;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -21,7 +26,7 @@ in
settings = { settings = {
main = { main = {
font = "Iosevka Nerd Font:size=16, Twitter Color Emoji:size=12"; font = "Iosevka Nerd Font:size=${toString cfg.fontSize}, Twitter Color Emoji:size=${toString cfg.fontSize}";
dpi-aware = "no"; dpi-aware = "no";
}; };

View file

@ -66,6 +66,7 @@ in
foot = { foot = {
enable = true; enable = true;
server = false; server = false;
fontSize = 16;
}; };
git = { git = {
enable = true; enable = true;