Switch to grub for os-prober

This commit is contained in:
Nathan McCarty 2021-12-21 10:13:35 -05:00
parent 2afe76b5a3
commit 63f97a19aa
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 16 additions and 3 deletions

View File

@ -49,9 +49,22 @@
./applications/syncthing.nix
({ pkgs, ... }: {
## Boot, drivers, and host name
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Use grub
boot.loader = {
grub = {
enable = true;
version = 2;
efiSupport = true;
# Go efi only
device = "nodev";
# Use os-prober
useOSProber = true;
};
efi = {
efiSysMountPoint = "/boot/";
canTouchEfiVariables = true;
};
};
# Enable AMD gpu drivers early
boot.initrd.kernelModules = [ "amdgpu" ];
# Use the zen kernel