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, ... }: { 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;