Commit eaa1034a authored by John Garcia's avatar John Garcia
Browse files

nixos/undervolt: add turbo option

parent e9a724f0
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ let
    inherit (cfg)
      verbose
      temp
      turbo
      ;
    # `core` and `cache` are both intentionally set to `cfg.coreOffset` as according to the undervolt docs:
    #
@@ -105,6 +106,14 @@ in
      '';
    };

    turbo = mkOption {
      type = types.nullOr types.int;
      default = null;
      description = lib.mdDoc ''
        Changes the Intel Turbo feature status (1 is disabled and 0 is enabled).
      '';
    };

    p1.limit = mkOption {
      type = with types; nullOr int;
      default = null;