mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 06:30:43 +00:00
Full rewrite
This commit is contained in:
parent
8053e16a12
commit
8dc12c0ae7
29 changed files with 294 additions and 74 deletions
5
options/device/default.nix
Normal file
5
options/device/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./hardware.nix
|
||||
];
|
||||
}
|
16
options/device/hardware.nix
Normal file
16
options/device/hardware.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ lib, ... }: with lib; let
|
||||
in
|
||||
{
|
||||
options.myOptions.device = {
|
||||
cpu.type = mkOption {
|
||||
type = with types; nullOr (enum [ "intel" "vm-intel" "amd" "vm-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, use the `vm-` prefix.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue