treewide: refactor bootloader config to common file

This commit is contained in:
Katherina Walshe-Grey 2024-10-01 19:20:34 +01:00
parent 1b18133585
commit cd84be16be
12 changed files with 30 additions and 53 deletions

View file

@ -1,14 +0,0 @@
{ config, lib, pkgs, ... }:
{
boot = {
loader.systemd-boot.enable = true;
loader.systemd-boot.editor = false;
loader.efi.canTouchEfiVariables = true;
initrd.availableKernelModules = [ "xhci_pci" "nvme" "rtsx_pci_sdmmc" ];
kernelModules = [ "kvm-intel" ];
supportedFilesystems = [ "ntfs" ]; # for USB drives
};
}

View file

@ -2,7 +2,6 @@
{
imports = [
./boot.nix
./filesystems.nix
./hardware.nix
./networking.nix
@ -14,6 +13,9 @@
networking.hostName = "tohru";
networking.hostId = "31da19c1";
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "rtsx_pci_sdmmc" ];
boot.kernelModules = [ "kvm-intel" ];
qenya.base-graphical.enable = true;
time.timeZone = "Europe/London";

View file

@ -5,6 +5,8 @@
"rpool".device = "/dev/nvme0n1p2";
};
boot.supportedFilesystems = [ "ntfs" ]; # for USB drives
fileSystems = {
"/" = {
device = "rpool/root";