From 96f5d82a5d45536c3569036418170b5c3e4968e1 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 9 Nov 2023 12:10:46 +0800 Subject: [PATCH] nixos,boot: mkOption -> mkEnableOption --- nixos/boot/boot.nix | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/nixos/boot/boot.nix b/nixos/boot/boot.nix index 1ddafe6..37c7f47 100755 --- a/nixos/boot/boot.nix +++ b/nixos/boot/boot.nix @@ -6,18 +6,8 @@ options = { myFlake.nixos = { boot = { - silentBoot = lib.mkOption { - type = lib.types.bool; - default = false; - example = true; - description = "Enable silent boot"; - }; - noLoaderMenu = lib.mkOption { - type = lib.types.bool; - default = false; - example = true; - description = "Disable bootloader menu"; - }; + silentBoot = lib.mkEnableOption "Enable silent boot"; + noLoaderMenu = lib.mkEnableOption "Disable bootloader menu"; }; }; };