Replace grub with systemd-boot

This commit is contained in:
coolneng 2020-05-08 21:53:52 +02:00
parent 4f9079395d
commit f4e7147105
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
4 changed files with 25 additions and 17 deletions

View File

@ -9,11 +9,11 @@
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
@ -23,11 +23,10 @@
# 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
];
}

View File

@ -2,7 +2,7 @@
{
# Display manager
service.xserver.displayManager = {
services.xserver.displayManager = {
defaultSession = "sway";
sddm = {
enable = true;

View File

@ -9,10 +9,10 @@
# Set hostname and hostid
networking = {
hostName = "panacea";
hostId = "a434d9ed230d";
hostId = "8feb0bb8";
wireless = {
enable = true;
}
};
};
# Enable zeroconf

View File

@ -5,11 +5,16 @@
# Monitoring
htop
# Password management
pass-wayland passff-host gitAndTools.pass-git-helper
pass-wayland
passff-host
gitAndTools.pass-git-helper
# Browsers
firefox chromium
firefox
chromium
# LaTeX
texlive.combind.scheme-full pandoc pandoc-citeproc
texlive.combind.scheme-full
pandoc
pandoc-citeproc
];
# Fonts declaration