2020-11-30 02:54:55 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.alacritty = {
|
|
|
|
enable = true;
|
2023-12-28 11:07:30 +00:00
|
|
|
package = config.lib.test.mkStubPackage { version = "0.12.3"; };
|
2020-11-30 02:54:55 +00:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
window.dimensions = {
|
|
|
|
lines = 3;
|
|
|
|
columns = 200;
|
|
|
|
};
|
|
|
|
|
|
|
|
key_bindings = [{
|
|
|
|
key = "K";
|
|
|
|
mods = "Control";
|
|
|
|
chars = "\\x0c";
|
|
|
|
}];
|
|
|
|
|
|
|
|
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.yml \
|
|
|
|
${./settings-merging-expected.yml}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|