Replace grub with systemd-boot
This commit is contained in:
@@ -9,25 +9,24 @@
|
||||
kernelModules = [ "i915" "acpi_call" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||
supportedFilesystems = [ "zfs" ];
|
||||
zfs.requestEncryptionCredentials = true;
|
||||
};
|
||||
|
||||
# Intel CPU tweaks
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
|
||||
# Bootloader configuration
|
||||
boot.loader = {
|
||||
timeout = 2;
|
||||
grub = {
|
||||
efiSupport = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 50;
|
||||
copyKernels = true;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -69,12 +68,16 @@
|
||||
swapDevices = [ { device = "/swap"; size = 8192; } ];
|
||||
boot.resumeDevice = "/swap";
|
||||
|
||||
# NixOS version
|
||||
system.stateVersion = "20.09";
|
||||
|
||||
# Import other configuration modules
|
||||
imports = [
|
||||
./modules/software.nix
|
||||
./modules/networking.nix
|
||||
./modules/gui.nix
|
||||
./modules/datasync.nix
|
||||
./modules/audio.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user