boot options

This commit is contained in:
Sense T 2023-06-27 17:37:45 +08:00
parent e4063daf67
commit ffbdf5dd15
2 changed files with 38 additions and 27 deletions

View File

@ -9,29 +9,6 @@
./global
];
boot.plymouth.enable = true;
#boot.loader.systemd-boot.enable = true;
#boot.loader.systemd-boot.configurationLimit = 2;
boot.loader.efi.canTouchEfiVariables = true;
#boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.grub = {
configurationLimit = 2;
efiSupport = true;
device = "nodev";
mirroredBoots = [
{
devices = [ "nodev" ];
path = "/boot";
}
];
};
# Use xanmod kernel
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
system.autoUpgrade = {
enable = true;
flake = "git+https://git.sense-t.eu.org/NixOS/gpd-configurations#gpd";

View File

@ -8,10 +8,44 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot = {
plymouth.enable = true;
# Use xanmod kernel
kernelPackages = pkgs.linuxPackages_xanmod_latest;
kernelParams = [ "quiet" ];
kernelModules = [ "kvm-intel" ];
consoleLogLevel = 0;
initrd = {
#verbose = false;
availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
];
};
loader = {
efi.canTouchEfiVariables = true;
grub = {
configurationLimit = 10;
efiSupport = true;
device = "nodev";
mirroredBoots = [
{
devices = [ "nodev" ];
path = "/boot";
}
];
};
};
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8095-BE1B";