refactor(nixos:host): move module options -> nixos/options/host.nix

This commit is contained in:
ooks-io 2024-06-10 13:23:53 +12:00
parent 20466f95b2
commit 1ac90d7985
11 changed files with 137 additions and 199 deletions

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkMerge mkEnableOption mkIf versionAtLeast versionOlder;
inherit (lib) mkMerge mkIf versionAtLeast versionOlder;
inherit (builtins) elem;
cpu = config.ooknet.host.hardware.cpu;
cfg = cpu.amd;
@ -11,8 +11,6 @@ let
in
{
options.ooknet.host.hardware.cpu.amd.pstate.enable = mkEnableOption "Enable amd pstate module";
config = mkIf (elem cpu.type ["amd"]) {
environment.systemPackages = [pkgs.amdctl];
hardware.cpu.amd.updateMicrocode = true;