mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
22 lines
404 B
Nix
22 lines
404 B
Nix
{
|
|
programs.visidata = {
|
|
enable = true;
|
|
visidatarc = ''
|
|
options.min_memory_mb=100
|
|
|
|
bindkey('0', 'go-leftmost')
|
|
|
|
def median(values):
|
|
L = sorted(values)
|
|
return L[len(L)//2]
|
|
|
|
vd.aggregator('median', median)
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.visidatarc
|
|
assertFileContent home-files/.visidatarc \
|
|
${./config}
|
|
'';
|
|
}
|