1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-19 08:19:48 +01:00
home-manager/tests/modules/programs/less/less-with-custom-keys.nix
Pamplemousse f23073f1da
less: allow customization
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
2021-11-30 23:28:32 +01:00

26 lines
408 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
programs.less = {
enable = true;
keys = ''
s back-line
t forw-line
'';
};
test.stubs.less = { };
nmt.script = ''
assertFileExists home-files/.lesskey
assertFileContent home-files/.lesskey ${
builtins.toFile "less.expected" ''
s back-line
t forw-line
''
}
'';
}