refactor: move users/common to modules/config structure like for hosts

This commit is contained in:
oddlama 2023-09-10 12:44:58 +02:00
parent 2087bbce07
commit 4b5507f374
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
15 changed files with 14 additions and 14 deletions

View file

@ -0,0 +1,32 @@
{config, ...}: {
programs.htop = {
enable = true;
settings =
{
tree_view = 1;
highlight_base_name = 1;
show_cpu_frequency = 1;
show_cpu_temperature = 1;
show_program_path = 0;
hide_kernel_threads = 1;
hide_userland_threads = 1;
sort_key = 46; # Sort by %CPU if not in tree mode
}
// (with config.lib.htop;
leftMeters [
(bar "LeftCPUs2")
(bar "Memory")
(bar "Swap")
(bar "ZFSARC")
(text "NetworkIO")
])
// (with config.lib.htop;
rightMeters [
(bar "RightCPUs2")
(text "LoadAverage")
(text "Tasks")
(text "Uptime")
(text "Systemd")
]);
};
}