Full rewrite

This commit is contained in:
ItsDrike 2024-03-21 21:47:25 +01:00
parent 8053e16a12
commit 8dc12c0ae7
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
29 changed files with 294 additions and 74 deletions

6
options/default.nix Normal file
View file

@ -0,0 +1,6 @@
_: {
imports = [
./device
./system.nix
];
}

View file

@ -0,0 +1,5 @@
_: {
imports = [
./hardware.nix
];
}

View 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.
'';
};
};
}

15
options/system.nix Normal file
View file

@ -0,0 +1,15 @@
{ lib, ... }: with lib; let
in
{
options.myOptions.system = {
hostname = mkOption {
description = "hostname for this system";
type = types.str;
};
username = mkOption {
description = "username for the primary admin account for this system";
type = types.str;
};
};
}