From b4674b39c1928f05118ea0c1c4fb8ab66190edd6 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Wed, 9 Nov 2022 22:45:00 +0100 Subject: treewide: use `mkEnableOption` in nixos modules --- nixos/modules/services/monitoring/heapster.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'nixos/modules/services/monitoring/heapster.nix') diff --git a/nixos/modules/services/monitoring/heapster.nix b/nixos/modules/services/monitoring/heapster.nix index 2f2467477ae2..fc63276b62f7 100644 --- a/nixos/modules/services/monitoring/heapster.nix +++ b/nixos/modules/services/monitoring/heapster.nix @@ -6,11 +6,7 @@ let cfg = config.services.heapster; in { options.services.heapster = { - enable = mkOption { - description = lib.mdDoc "Whether to enable heapster monitoring"; - default = false; - type = types.bool; - }; + enable = mkEnableOption (lib.mdDoc "Heapster monitoring"); source = mkOption { description = lib.mdDoc "Heapster metric source"; -- cgit 1.4.1