hardware: add cpu cores option

This commit is contained in:
ooks-io 2025-01-13 13:25:06 +11:00
parent 4191eb50bf
commit f020ae8902
2 changed files with 9 additions and 2 deletions

View file

@ -1,7 +1,10 @@
{ {
ooknet.hardware = { ooknet.hardware = {
cpu.type = "amd"; cpu = {
cpu.amd.pstate.enable = true; type = "amd";
amd.pstate.enable = true;
cores = 16;
};
gpu.type = "amd"; gpu.type = "amd";
features = ["printing" "ssd" "audio" "video"]; features = ["printing" "ssd" "audio" "video"];
monitors = [ monitors = [

View file

@ -21,6 +21,10 @@ in {
default = null; default = null;
}; };
amd.pstate.enable = mkEnableOption ""; amd.pstate.enable = mkEnableOption "";
cores = {
type = int;
description = "Number of Physical CPU cores the system has";
};
}; };
features = mkOption { features = mkOption {