nixos/undervolt: add a warning for the enable
option
Also use the convenience `mkEnableOption` function for simplicity.
This commit is contained in:
parent
2cb97c36ae
commit
6fb11e5227
1 changed files with 4 additions and 9 deletions
|
@ -1,18 +1,13 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.undervolt;
|
cfg = config.services.undervolt;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.services.undervolt = {
|
options.services.undervolt = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption
|
||||||
type = types.bool;
|
"Intel CPU undervolting service (WARNING: may permanently damage your hardware!)";
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether to undervolt intel cpus.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
verbose = mkOption {
|
verbose = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|
Loading…
Reference in a new issue