mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[General] Rename cores option to cpu.threads
This commit is contained in:
parent
6c4ce14a5c
commit
d7735e3454
1 changed files with 8 additions and 7 deletions
15
general.nix
15
general.nix
|
|
@ -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 {
|
|
||||||
default = null;
|
|
||||||
example = 4;
|
|
||||||
description = "Number of physical threads of the machine";
|
|
||||||
type = with types; nullOr ints.positive;
|
|
||||||
};
|
|
||||||
|
|
||||||
cpu = {
|
cpu = {
|
||||||
|
threads = mkOption {
|
||||||
|
default = null;
|
||||||
|
example = 4;
|
||||||
|
description = "Number of physical threads of the machine";
|
||||||
|
type = with types; nullOr ints.positive;
|
||||||
|
};
|
||||||
|
|
||||||
vendor = mkOption {
|
vendor = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
example = "amd";
|
example = "amd";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue