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, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.undervolt;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.services.undervolt = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to undervolt intel cpus.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption
|
||||
"Intel CPU undervolting service (WARNING: may permanently damage your hardware!)";
|
||||
|
||||
verbose = mkOption {
|
||||
type = types.bool;
|
||||
|
|
Loading…
Reference in a new issue