mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 05:29:42 +00:00
34 lines
981 B
Nix
34 lines
981 B
Nix
{ lib, ... }: with lib; let
|
|
in
|
|
{
|
|
options.myOptions.device = {
|
|
cpu.type = mkOption {
|
|
type = with types; nullOr (enum [ "intel" "amd" ]);
|
|
default = null;
|
|
description = ''
|
|
The manifaturer/type of the primary system CPU.
|
|
|
|
Determines which ucode services will be enabled and provides additional kernel packages.
|
|
If running in a virtual machine with forwarded/shared cores (CPU passthrough), use the
|
|
cpu type of the host machine.
|
|
'';
|
|
};
|
|
|
|
gpu.type = mkOption {
|
|
type = with types; nullOr (enum [ "nvidia" "amd" "intel" ]);
|
|
default = null;
|
|
description = ''
|
|
The manifaturer/type of the primary system GPU.
|
|
|
|
Allows the correct GPU drivers to be loaded, potentially optimizing video output performance.
|
|
'';
|
|
};
|
|
|
|
hasTPM = mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = "Does this device have a TPM (Trusted Platform Module)?";
|
|
};
|
|
};
|
|
}
|