mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
cb09a968e9
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
31 lines
550 B
Nix
31 lines
550 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.alacritty = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { };
|
|
|
|
settings = {
|
|
window.dimensions = {
|
|
lines = 3;
|
|
columns = 200;
|
|
};
|
|
|
|
key_bindings = [{
|
|
key = "K";
|
|
mods = "Control";
|
|
chars = "\\x0c";
|
|
}];
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/alacritty/alacritty.yml \
|
|
${./example-settings-expected.yml}
|
|
'';
|
|
};
|
|
}
|