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
|
./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
|
||||||
|
|
Loading…
Reference in New Issue