alacritty: configure font size per-host
This commit is contained in:
parent
a7567dfbe6
commit
18c7fc17fd
|
@ -24,6 +24,8 @@
|
||||||
backlight = "backlight"; # /sys/class/backlight/*backlight*/brightness
|
backlight = "backlight"; # /sys/class/backlight/*backlight*/brightness
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sane.programs.alacritty.config.fontSize = 9;
|
||||||
|
|
||||||
sane.programs.sway.config = {
|
sane.programs.sway.config = {
|
||||||
font = "pango:monospace 10";
|
font = "pango:monospace 10";
|
||||||
mod = "Mod1"; # prefer Alt
|
mod = "Mod1"; # prefer Alt
|
||||||
|
|
|
@ -3,14 +3,28 @@
|
||||||
# - `man 5 alacritty`
|
# - `man 5 alacritty`
|
||||||
# - defaults: <https://github.com/alacritty/alacritty/releases> -> alacritty.yml
|
# - defaults: <https://github.com/alacritty/alacritty/releases> -> alacritty.yml
|
||||||
# - irc: #alacritty on libera.chat
|
# - irc: #alacritty on libera.chat
|
||||||
{ lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.sane.programs.alacritty;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
sane.programs.alacritty = {
|
sane.programs.alacritty = {
|
||||||
|
configOption = with lib; mkOption {
|
||||||
|
default = {};
|
||||||
|
type = types.submodule {
|
||||||
|
options.fontSize = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
default = 14;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
sandbox.enable = false;
|
sandbox.enable = false;
|
||||||
env.TERMINAL = lib.mkDefault "alacritty";
|
env.TERMINAL = lib.mkDefault "alacritty";
|
||||||
|
|
||||||
fs.".config/alacritty/alacritty.toml".symlink.text = ''
|
fs.".config/alacritty/alacritty.toml".symlink.text = ''
|
||||||
[font]
|
[font]
|
||||||
size = 14
|
size = ${builtins.toString cfg.config.fontSize}
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
[[keyboard.bindings]]
|
||||||
mods = "Control"
|
mods = "Control"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user