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 ./applications/syncthing.nix
({ pkgs, ... }: { ({ pkgs, ... }: {
## Boot, drivers, and host name ## Boot, drivers, and host name
# Use the systemd-boot EFI boot loader. # Use grub
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.efi.canTouchEfiVariables = true; 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 # Enable AMD gpu drivers early
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = [ "amdgpu" ];
# Use the zen kernel # Use the zen kernel