Modularize hardware config

This commit is contained in:
DashieTM 2024-07-11 18:20:05 +02:00
parent e5e23373da
commit 8e9ee08e09
6 changed files with 30 additions and 69 deletions

View file

@ -1,5 +1,15 @@
{ lib, config, pkgs, ... }: {
options.conf = {
cpu = lib.mkOption {
# TODO: how to enable arm?
default = "amd";
type = with lib.types; (enum [ "amd" "intel" ]);
example = "intel";
description = ''
cpu microcode.
'';
};
monitor = lib.mkOption {
default = "";
example = "eDP-1";