summaryrefslogtreecommitdiff
path: root/sys/boot/chain.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/chain.nix')
-rw-r--r--sys/boot/chain.nix6
1 files changed, 2 insertions, 4 deletions
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;