bootloader choice
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user