mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +01:00
40 lines
782 B
Nix
40 lines
782 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs.alacritty = {
|
||
|
enable = true;
|
||
|
package = pkgs.writeScriptBin "dummy-alacritty" "";
|
||
|
|
||
|
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}
|
||
|
'';
|
||
|
};
|
||
|
}
|