Switch to grub for os-prober
This commit is contained in:
parent
2afe76b5a3
commit
63f97a19aa
19
flake.nix
19
flake.nix
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue