chore: commonize bootloader

This commit is contained in:
Noa Aarts 2024-06-28 08:46:20 +02:00
parent f69abba97e
commit bc55f12776
4 changed files with 21 additions and 6 deletions

12
common/boot.nix Normal file
View file

@ -0,0 +1,12 @@
{lib,...}:
{
boot.loader = {
timeout = lib.mkDefault 0;
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
editor = false;
configurationLimit = 100;
};
};
}

7
common/default.nix Normal file
View file

@ -0,0 +1,7 @@
{...}:
{
imports = [
./locale.nix
./boot.nix
];
}

View file

@ -12,7 +12,7 @@
../../modules/websites
../../modules/plasma
../../common/locale.nix
../../common
];
boot = rec {

View file

@ -14,13 +14,9 @@
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
../../common/locale.nix
../../common
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# LOVE me some blob
hardware.enableRedistributableFirmware = true;
hardware.enableAllFirmware = true;