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 ./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 = { system.autoUpgrade = {
enable = true; enable = true;
flake = "git+https://git.sense-t.eu.org/NixOS/gpd-configurations#gpd"; flake = "git+https://git.sense-t.eu.org/NixOS/gpd-configurations#gpd";

View File

@ -8,10 +8,44 @@
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot = {
boot.kernelModules = [ "kvm-intel" ]; plymouth.enable = true;
boot.extraModulePackages = [ ]; # 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" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8095-BE1B"; device = "/dev/disk/by-uuid/8095-BE1B";