summaryrefslogtreecommitdiff
path: root/sys/boot/chain.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-08-02 17:03:25 -0600
committerAlejandro Soto <alejandro@34project.org>2024-08-03 11:11:27 -0600
commit92848a9ab888518d7211327d7733f40814e7ccbf (patch)
tree2eeeacce2462f5c8b1eee9f429bd749668a3bf4b /sys/boot/chain.nix
parentae67454d07f2e2cfe66dbfaa19b4296499171ba8 (diff)
sys/[lustrated]: initial commit
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;