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 | |
| parent | ae67454d07f2e2cfe66dbfaa19b4296499171ba8 (diff) | |
sys/[lustrated]: initial commit
Diffstat (limited to '')
| -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; } |
