mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Programs] Add nvtop config, with special handling for Nvidia GPUs
This commit is contained in:
parent
17180722c1
commit
1f0f8ba399
7 changed files with 34 additions and 7 deletions
|
|
@ -16,13 +16,6 @@ in
|
|||
];
|
||||
|
||||
config = {
|
||||
|
||||
environment.systemPackages = []
|
||||
++ optional (cfg.amd.enable && cfg.nvidia.enable) pkgs.nvtop
|
||||
++ optional cfg.amd.enable pkgs.nvtop-amd
|
||||
++ optional cfg.nvidia.enable pkgs.nvtop-nvidia
|
||||
;
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
|
||||
# Why: https://www.phoronix.com/news/Ryzen-Segv-Response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue