refactor(nixos:host): move module options -> nixos/options/host.nix
This commit is contained in:
parent
20466f95b2
commit
1ac90d7985
11 changed files with 137 additions and 199 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue