hosts: implement hardware options
This commit is contained in:
parent
36a5dd6927
commit
ca153bb54d
2 changed files with 19 additions and 0 deletions
|
@ -9,6 +9,7 @@ let
|
|||
./hour/interfaces.nix
|
||||
./hour/nixos.nix
|
||||
./hour/ssh.nix
|
||||
./hour/hardware.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
|
18
hosts/options/hour/hardware.nix
Normal file
18
hosts/options/hour/hardware.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ lib, ... }:
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.hardware = {
|
||||
cpu = {
|
||||
cores = mkOption {
|
||||
type = types.ints.unsigned;
|
||||
};
|
||||
};
|
||||
memory = {
|
||||
gb = mkOption {
|
||||
type = types.ints.unsigned;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue