use grub!

This commit is contained in:
Sense T 2023-06-26 20:08:55 +08:00
parent 26d87e6593
commit 2956fa6ac9
3 changed files with 15 additions and 3 deletions

View File

@ -12,9 +12,16 @@
boot.plymouth.enable = true; boot.plymouth.enable = true;
boot.loader.systemd-boot.enable = true; #boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 2; #boot.loader.systemd-boot.configurationLimit = 2;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.grub = {
configurationLimit = 2;
efiSupport = true;
device = "nodev";
};
# Use xanmod kernel # Use xanmod kernel
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest; boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;

View File

@ -9,6 +9,11 @@
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
"/root" "/root"
"/var" "/var"
"/boot"
];
files = [
"/etc/machine-id"
]; ];
}; };

View File

@ -19,7 +19,7 @@
options = [ "relatime" "mode=755" ]; options = [ "relatime" "mode=755" ];
}; };
fileSystems."/boot" = { fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/8095-BE1B"; device = "/dev/disk/by-uuid/8095-BE1B";
fsType = "vfat"; fsType = "vfat";
}; };