diff options
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/chain.nix | 6 | ||||
| -rw-r--r-- | sys/boot/namespaced.nix | 3 |
2 files changed, 4 insertions, 5 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; diff --git a/sys/boot/namespaced.nix b/sys/boot/namespaced.nix index 9927ae2..db01d55 100644 --- a/sys/boot/namespaced.nix +++ b/sys/boot/namespaced.nix @@ -12,9 +12,10 @@ in local.boot = mkMerge ([ { - enable = mkForce false; + loader = mkForce "none"; efi.enable = mkForce false; + firmware.mode = mkForce "none"; secureBoot.enable = mkForce false; impermanence.enable = mkForce false; } |
