2024-04-19 14:57:02 +00:00
|
|
|
{ config, lib, ... }:
|
2020-11-30 02:54:55 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.alacritty = {
|
|
|
|
enable = true;
|
2024-04-19 14:57:02 +00:00
|
|
|
package = config.lib.test.mkStubPackage { };
|
2020-11-30 02:54:55 +00:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
window.dimensions = {
|
|
|
|
lines = 3;
|
|
|
|
columns = 200;
|
|
|
|
};
|
|
|
|
|
2024-04-19 14:57:02 +00:00
|
|
|
keyboard.bindings = [{
|
2020-11-30 02:54:55 +00:00
|
|
|
key = "K";
|
|
|
|
mods = "Control";
|
2024-04-19 14:57:02 +00:00
|
|
|
chars = "\\u000c";
|
2020-11-30 02:54:55 +00:00
|
|
|
}];
|
|
|
|
|
|
|
|
font = let
|
|
|
|
defaultFont =
|
|
|
|
lib.mkMerge [ (lib.mkIf true "SFMono") (lib.mkIf false "Iosevka") ];
|
|
|
|
in {
|
|
|
|
normal.family = defaultFont;
|
|
|
|
bold.family = defaultFont;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContent \
|
2024-04-19 14:57:02 +00:00
|
|
|
home-files/.config/alacritty/alacritty.toml \
|
|
|
|
${./settings-toml-expected.toml}
|
2020-11-30 02:54:55 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|