meta: Migrate htop from home-manager to shell module

Realistically I want access to htop on any machine running my shell
configuration. Making this NixOS-specific removes some of the dependence
on home-manager as well.
This commit is contained in:
Donovan Glover 2024-04-04 08:32:36 -04:00
parent a1b9cf218d
commit e1e1243618
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 17 additions and 23 deletions

View File

@ -1,22 +0,0 @@
{ pkgs, ... }:
let
inherit (pkgs) htop-vim;
in
{
programs.htop = {
enable = true;
package = htop-vim;
settings = {
tree_view = true;
hide_userland_threads = true;
highlight_changes = true;
show_cpu_frequency = true;
show_cpu_temperature = true;
highlight_base_name = true;
show_program_path = false;
};
};
}

View File

@ -1,7 +1,7 @@
{ pkgs, ... }:
let
inherit (pkgs) fish;
inherit (pkgs) fish htop-vim;
in
{
users.defaultUserShell = fish;
@ -258,5 +258,21 @@ in
swift.symbol = "swift ";
};
};
htop = {
enable = true;
package = htop-vim;
settings = {
tree_view = true;
hide_userland_threads = true;
highlight_changes = true;
show_cpu_frequency = true;
show_cpu_temperature = true;
highlight_base_name = true;
show_program_path = false;
};
};
};
}