refactor: remove nvtop package and put configuration into home configuration
All checks were successful
ci / treefmt (push) Successful in 1m58s

This commit is contained in:
Ceferino Patino 2026-06-09 23:12:33 -05:00
commit cbf3d04c1d
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI
3 changed files with 16 additions and 23 deletions

View file

@ -4,6 +4,7 @@
inputs,
lib,
namespace,
pkgs,
...
}: let
inherit (lib.${namespace}) enabled;
@ -38,7 +39,6 @@ in {
metrics = {
hyperfine = enabled;
nvtop = enabled;
};
tools = {
@ -102,5 +102,11 @@ in {
}
];
home.stateVersion = "26.05";
home = {
packages = with pkgs; [
nvtopPackages.nvidia
];
stateVersion = "26.05";
};
}

View file

@ -1,6 +1,7 @@
{
lib,
namespace,
pkgs,
...
}: let
inherit (lib.${namespace}) enabled;
@ -14,5 +15,11 @@ in {
cli.dev.neovim.variant = "minimal";
};
home.stateVersion = "26.05";
home = {
packages = with pkgs; [
nvtopPackages.amd
];
stateVersion = "26.05";
};
}

View file

@ -1,20 +0,0 @@
{
config,
lib,
namespace,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
inherit (lib.${namespace}) getAttrByNamespace mkOptionsWithNamespace;
base = "${namespace}.cli.metrics.nvtop";
cfg = getAttrByNamespace config base;
in {
options = mkOptionsWithNamespace base {
enable = mkEnableOption "nvtop";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [nvtopPackages.nvidia];
};
}