]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/htop.nix
nix: add nixpkgs.root
[julm/julm-nix.git] / home-manager / profiles / htop.nix
1 { pkgs, lib, config, ...}:
2 {
3 # This must appear before "column_meters_*" options
4 xdg.configFile."htop/htoprc".text = lib.mkBefore ''
5 header_layout=two_50_50
6 '';
7 home.packages = [ pkgs.htop ];
8 programs.htop = {
9 enable = lib.mkDefault true;
10 settings = {
11 account_guest_in_cpu_meter = false;
12 all_branches_collapsed = false;
13 color_scheme = false;
14 column_meter_modes_0 = "3 1 1 1";
15 column_meter_modes_1 = "2 2 2 3 1 3 1 1 1 1";
16 column_meters_0 = "AllCPUs Memory Swap Zram";
17 column_meters_1 = "Systemd LoadAverage Uptime DiskIO DiskIO NetworkIO NetworkIO ZFSARC ZFSCARC PressureStallIOFull";
18 cpu_count_from_one = false;
19 degree_fahrenheit = false;
20 delay = 15;
21 detailed_cpu_time = true;
22 enable_mouse = true;
23 find_comm_in_cmdline = true;
24 header_margin = true;
25 hide_function_bar = false;
26 hide_kernel_threads = false;
27 hide_threads = true;
28 hide_userland_threads = false;
29 highlight_base_name = true;
30 highlight_changes = true;
31 highlight_changes_delay_secs = 5;
32 highlight_deleted_exe = true;
33 highlight_megabytes = true;
34 highlight_threads = true;
35 screen_tabs = true;
36 shadow_other_users = false;
37 show_cpu_frequency = true;
38 show_cpu_temperature = false;
39 show_cpu_usage = true;
40 show_merged_command = false;
41 show_program_path = false;
42 show_thread_names = false;
43 sort_direction = 0;
44 sort_key = 46; # PERCENT_CPU
45 strip_exe_from_cmdline = true;
46 tree_sort_direction = 0;
47 tree_sort_key = 46; # PERCENT_CPU
48 tree_view = true;
49 tree_view_always_by_pid = false;
50 update_process_names = false;
51 /*
52 "screen:Main" = ''
53 PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
54 .sort_key=PERCENT_CPU
55 .tree_sort_key=PERCENT_CPU
56 .tree_view=1
57 .tree_view_always_by_pid=0
58 .sort_direction=0
59 .tree_sort_direction=0
60 .all_branches_collapsed=0
61 '';
62 "screen:I/O" = ''
63 PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE
64 .sort_key=IO_RATE
65 .tree_sort_key=PID
66 .tree_view=0
67 .tree_view_always_by_pid=0
68 .sort_direction=-1
69 .tree_sort_direction=1
70 .all_branches_collapsed=0
71 '';
72 */
73 };
74 };
75 }