From ca153bb54d40219b87b900819f5ae29ab2a3e0ce Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 1 Aug 2024 20:44:02 +0200 Subject: [PATCH] hosts: implement hardware options --- hosts/options/default.nix | 1 + hosts/options/hour/hardware.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 hosts/options/hour/hardware.nix diff --git a/hosts/options/default.nix b/hosts/options/default.nix index 9b36faf..ab9d375 100644 --- a/hosts/options/default.nix +++ b/hosts/options/default.nix @@ -9,6 +9,7 @@ let ./hour/interfaces.nix ./hour/nixos.nix ./hour/ssh.nix + ./hour/hardware.nix ]; }; diff --git a/hosts/options/hour/hardware.nix b/hosts/options/hour/hardware.nix new file mode 100644 index 0000000..978ddea --- /dev/null +++ b/hosts/options/hour/hardware.nix @@ -0,0 +1,18 @@ +{ lib, ... }: +with lib; + +{ + options.hardware = { + cpu = { + cores = mkOption { + type = types.ints.unsigned; + }; + }; + memory = { + gb = mkOption { + type = types.ints.unsigned; + }; + }; + }; +} +