modules/boot: move bootloaders to module

This commit is contained in:
Infinidoge 2021-11-21 19:58:03 -05:00
parent c18b633ea9
commit bca6c11270
7 changed files with 66 additions and 45 deletions

View file

@ -1,17 +0,0 @@
{ lib, ... }:
with lib;
{
boot.loader = {
grub = {
enable = mkDefault true;
device = mkDefault "nodev";
efiSupport = mkDefault true;
useOSProber = mkDefault false;
efiInstallAsRemovable = mkDefault true;
};
efi = {
canTouchEfiVariables = mkDefault false;
efiSysMountPoint = mkDefault "/boot/efi";
};
};
}

View file

@ -1,14 +0,0 @@
{ lib, ... }:
with lib;
{
boot.loader = {
systemd-boot = {
enable = mkDefault true;
editor = false;
consoleMode = "2";
};
efi.canTouchEfiVariables = true;
timeout = mkDefault 3;
};
}