chore: commonize bootloader
This commit is contained in:
parent
f69abba97e
commit
bc55f12776
4 changed files with 21 additions and 6 deletions
12
common/boot.nix
Normal file
12
common/boot.nix
Normal 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
7
common/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{...}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./locale.nix
|
||||||
|
./boot.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
../../modules/websites
|
../../modules/websites
|
||||||
../../modules/plasma
|
../../modules/plasma
|
||||||
|
|
||||||
../../common/locale.nix
|
../../common
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = rec {
|
boot = rec {
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,9 @@
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
(modulesPath + "/profiles/qemu-guest.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
|
# LOVE me some blob
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue