bootloader choice

This commit is contained in:
2026-07-05 23:27:14 -05:00
parent 6fced6d0f3
commit 3c5133f721
2 changed files with 68 additions and 0 deletions
+20
View File
@@ -89,5 +89,25 @@ in
settings.PermitRootLogin = allowRootSSH;
};
};
boot.loader =
if cfg.bootloader == "grub" then
{
grub = {
enable = cfg.grub.enable;
device = cfg.grub.device;
};
systemd-boot.enable = false;
}
else
{
systemd-boot = {
enable = cfg.systemd.enable;
efiSupport = cfg.systemd.efiSupport;
};
grub.enable = false;
};
};
}