[General] Rename cores option to cpu.threads

This commit is contained in:
Antoine Viallon 2023-04-16 19:35:38 +02:00
parent 6c4ce14a5c
commit d7735e3454
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -10,6 +10,7 @@ in
(mkRenamedOptionModule [ "aviallon" "general" "cpuVendor" ] [ "aviallon" "general" "cpu" "vendor" ]) (mkRenamedOptionModule [ "aviallon" "general" "cpuVendor" ] [ "aviallon" "general" "cpu" "vendor" ])
(mkRenamedOptionModule [ "aviallon" "general" "cpuArch" ] [ "aviallon" "general" "cpu" "arch" ]) (mkRenamedOptionModule [ "aviallon" "general" "cpuArch" ] [ "aviallon" "general" "cpu" "arch" ])
(mkRenamedOptionModule [ "aviallon" "general" "cpuTune" ] [ "aviallon" "general" "cpu" "tune" ]) (mkRenamedOptionModule [ "aviallon" "general" "cpuTune" ] [ "aviallon" "general" "cpu" "tune" ])
(mkRenamedOptionModule [ "aviallon" "general" "cores" ] [ "aviallon" "general" "cpu" "threads" ])
]; ];
options.aviallon.general = { options.aviallon.general = {
@ -22,14 +23,14 @@ in
minimal = mkEnableOption "minimal installation"; minimal = mkEnableOption "minimal installation";
cores = mkOption { cpu = {
threads = mkOption {
default = null; default = null;
example = 4; example = 4;
description = "Number of physical threads of the machine"; description = "Number of physical threads of the machine";
type = with types; nullOr ints.positive; type = with types; nullOr ints.positive;
}; };
cpu = {
vendor = mkOption { vendor = mkOption {
default = null; default = null;
example = "amd"; example = "amd";