From f020ae8902725f98d818ebfb9e353050a2f96e83 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Mon, 13 Jan 2025 13:25:06 +1100 Subject: [PATCH] hardware: add cpu cores option --- hosts/ooksdesk/hardware.nix | 7 +++++-- modules/nixos/hardware/options.nix | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hosts/ooksdesk/hardware.nix b/hosts/ooksdesk/hardware.nix index 173a4b3..703abeb 100644 --- a/hosts/ooksdesk/hardware.nix +++ b/hosts/ooksdesk/hardware.nix @@ -1,7 +1,10 @@ { ooknet.hardware = { - cpu.type = "amd"; - cpu.amd.pstate.enable = true; + cpu = { + type = "amd"; + amd.pstate.enable = true; + cores = 16; + }; gpu.type = "amd"; features = ["printing" "ssd" "audio" "video"]; monitors = [ diff --git a/modules/nixos/hardware/options.nix b/modules/nixos/hardware/options.nix index 57aaece..44a4a36 100644 --- a/modules/nixos/hardware/options.nix +++ b/modules/nixos/hardware/options.nix @@ -21,6 +21,10 @@ in { default = null; }; amd.pstate.enable = mkEnableOption ""; + cores = { + type = int; + description = "Number of Physical CPU cores the system has"; + }; }; features = mkOption {