From b9c6e20ef62201d7647cf62bdabbddb252b2f458 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 2 Aug 2023 15:19:57 +0000 Subject: [PATCH] Use mkFlag for other options --- modules/beatific.nix | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/modules/beatific.nix b/modules/beatific.nix index 044f232..d0291a5 100644 --- a/modules/beatific.nix +++ b/modules/beatific.nix @@ -24,31 +24,11 @@ in { # beatific.defaults.${category} = false; # They default to true because the point is to do these things by default. defaults = { - time = mkOption { - type = types.bool; - description = "Default time zone and NTP"; - default = true; - }; - - i18n = mkOption { - type = types.bool; - description = "Default locale settings"; - default = true; - }; - - programs = mkOption { - type = types.bool; - description = "Default installed programs"; - default = true; - }; - + time = mkFlag "Default time zone and NTP"; + i18n = mkFlag "Default locale settings"; + programs = mkFlag "Default installed programs"; ssh = mkFlag "Enable openssh"; - - tvb = mkOption { - type = types.bool; - description = "Default tvb account"; - default = true; - }; + tvb = mkFlag "Default tvb account"; }; }; };