1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00
home-manager/tests/modules/programs/alacritty/settings-merging.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

39 lines
708 B
Nix

{ lib, ... }:
{
programs.alacritty = {
enable = true;
settings = {
window.dimensions = {
lines = 3;
columns = 200;
};
keyboard.bindings = [
{
key = "K";
mods = "Control";
chars = "\\u000c";
}
];
font =
let
defaultFont = lib.mkMerge [
(lib.mkIf true "SFMono")
(lib.mkIf false "Iosevka")
];
in
{
normal.family = defaultFont;
bold.family = defaultFont;
};
};
};
nmt.script = ''
assertFileContent \
home-files/.config/alacritty/alacritty.toml \
${./settings-toml-expected.toml}
'';
}