refactor: remove nvtop package and put configuration into home configuration
All checks were successful
ci / treefmt (push) Successful in 1m58s
All checks were successful
ci / treefmt (push) Successful in 1m58s
This commit is contained in:
parent
2b426af47e
commit
cbf3d04c1d
3 changed files with 16 additions and 23 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue