less: allow customization

Signed-off-by: Pamplemousse <xav.maso@gmail.com>
This commit is contained in:
Pamplemousse 2021-11-11 11:32:48 +01:00 committed by Robert Helgesson
parent 7c320a5325
commit f23073f1da
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
8 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1 @@
{ less-with-custom-keys = ./less-with-custom-keys.nix; }

View file

@ -0,0 +1,26 @@
{ 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
''
}
'';
}