forked from
lass.pds.lassul.us/superconfig
This repository has no description
1.2 kB
41 lines
1{ pkgs, ... }:
2
3{
4 nixpkgs.config.packageOverrides = super: {
5 htop = pkgs.symlinkJoin {
6 name = "htop";
7 paths = [
8 (pkgs.writeDashBin "htop" ''
9 export HTOPRC=${pkgs.writeText "htoprc" ''
10 fields=0 48 17 18 38 39 40 2 46 47 49 1
11 sort_key=46
12 sort_direction=1
13 hide_threads=0
14 hide_kernel_threads=1
15 hide_userland_threads=0
16 shadow_other_users=1
17 show_thread_names=1
18 show_program_path=1
19 highlight_base_name=1
20 highlight_megabytes=1
21 highlight_threads=1
22 tree_view=1
23 header_margin=1
24 detailed_cpu_time=0
25 cpu_count_from_zero=0
26 update_process_names=0
27 account_guest_in_cpu_meter=1
28 color_scheme=6
29 delay=15
30 left_meters=LeftCPUs2 RightCPUs2 Memory Swap
31 left_meter_modes=1 1 1 1
32 right_meters=Uptime Tasks LoadAverage Battery
33 right_meter_modes=2 2 2 2
34 ''}
35 exec ${super.htop}/bin/htop "$@"
36 '')
37 super.htop
38 ];
39 };
40 };
41}