c6444ecc3c
GitOrigin-RevId: 51e44a13acea71b36245e8bd8c7db53e0a3e61ee
39 lines
795 B
Nix
39 lines
795 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.alacritty = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { version = "0.12.3"; };
|
|
|
|
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}
|
|
'';
|
|
};
|
|
}
|