HASH f020ae890272
DATE 2025-01-13
SUBJECT hardware: add cpu cores option
FILES 2 CHANGED
HASH f020ae890272
DATE 2025-01-13
SUBJECT hardware: add cpu cores option
FILES 2 CHANGED
┌─ hosts/ooksdesk/hardware.nix ──────────────────────────────────────────────┐
│ 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 = [ │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ hosts/ooksdesk/hardware.nix ────────┐
│ diff --git a/hosts/ooksdesk/hardware.nix b/h │
│ osts/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" "v │
│ ideo"]; │
│ monitors = [ │
└──────────────────────────────────────────────┘
┌─ modules/nixos/hardware/options.nix ───────────────────────────────────────┐
│ diff --git a/modules/nixos/hardware/options.nix b/modules/nixos/hardware/options.n │
│ ix │
│ 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 { │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...es/nixos/hardware/options.nix ───┐
│ 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 C │
│ PU cores the system has"; │
│ + }; │
│ }; │
│ │
│ features = mkOption { │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET