hosts: implement hardware options

This commit is contained in:
Max Headroom 2024-08-01 20:44:02 +02:00
parent 36a5dd6927
commit ca153bb54d
2 changed files with 19 additions and 0 deletions

View file

@ -9,6 +9,7 @@ let
./hour/interfaces.nix ./hour/interfaces.nix
./hour/nixos.nix ./hour/nixos.nix
./hour/ssh.nix ./hour/ssh.nix
./hour/hardware.nix
]; ];
}; };

View file

@ -0,0 +1,18 @@
{ lib, ... }:
with lib;
{
options.hardware = {
cpu = {
cores = mkOption {
type = types.ints.unsigned;
};
};
memory = {
gb = mkOption {
type = types.ints.unsigned;
};
};
};
}