nixos/undervolt: add a warning for the enable option

Also use the convenience `mkEnableOption` function for simplicity.
This commit is contained in:
Piotr Bogdan 2020-06-11 14:42:40 +01:00
parent 2cb97c36ae
commit 6fb11e5227

View file

@ -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;