mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +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" "cpuArch" ] [ "aviallon" "general" "cpu" "arch" ])
|
||||
(mkRenamedOptionModule [ "aviallon" "general" "cpuTune" ] [ "aviallon" "general" "cpu" "tune" ])
|
||||
(mkRenamedOptionModule [ "aviallon" "general" "cores" ] [ "aviallon" "general" "cpu" "threads" ])
|
||||
];
|
||||
|
||||
options.aviallon.general = {
|
||||
|
|
@ -22,14 +23,14 @@ in
|
|||
|
||||
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 = {
|
||||
threads = mkOption {
|
||||
default = null;
|
||||
example = 4;
|
||||
description = "Number of physical threads of the machine";
|
||||
type = with types; nullOr ints.positive;
|
||||
};
|
||||
|
||||
vendor = mkOption {
|
||||
default = null;
|
||||
example = "amd";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue