From 92848a9ab888518d7211327d7733f40814e7ccbf Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Fri, 2 Aug 2024 17:03:25 -0600 Subject: sys/[lustrated]: initial commit --- sys/boot/chain.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/boot/chain.nix') diff --git a/sys/boot/chain.nix b/sys/boot/chain.nix index c726cf8..aeb3bbe 100644 --- a/sys/boot/chain.nix +++ b/sys/boot/chain.nix @@ -4,10 +4,8 @@ with lib; let in { options.local.boot = { - enable = mkEnableOption "system boot"; - loader = mkOption { - type = types.enum [ "grub" "systemd-boot" ]; + type = types.enum [ "none" "grub" "systemd-boot" ]; }; kernel = mkOption { @@ -15,7 +13,7 @@ in }; }; - config = mkIf cfg.enable { + config = mkIf (cfg.loader != "none") { boot = { kernelPackages = cfg.kernel; -- cgit v1.2.3