diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-08-02 17:03:25 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-08-03 11:11:27 -0600 |
| commit | 92848a9ab888518d7211327d7733f40814e7ccbf (patch) | |
| tree | 2eeeacce2462f5c8b1eee9f429bd749668a3bf4b /sys/boot/chain.nix | |
| parent | ae67454d07f2e2cfe66dbfaa19b4296499171ba8 (diff) | |
sys/[lustrated]: initial commit
Diffstat (limited to 'sys/boot/chain.nix')
| -rw-r--r-- | sys/boot/chain.nix | 6 |
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; |
