global/boot: init, refactored from modules/boot

This commit is contained in:
Infinidoge 2024-07-26 10:46:51 -04:00
parent b09425cee7
commit c399ad4200
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
12 changed files with 27 additions and 79 deletions

20
modules/global/boot.nix Normal file
View file

@ -0,0 +1,20 @@
{ lib, ... }:
let
inherit (lib) mkDefault;
in
{
boot.loader = {
timeout = mkDefault 3;
grub = {
enable = mkDefault true;
device = mkDefault "nodev";
efiSupport = mkDefault true;
useOSProber = mkDefault false;
efiInstallAsRemovable = mkDefault true;
};
efi = {
canTouchEfiVariables = mkDefault false;
efiSysMountPoint = mkDefault "/boot/efi";
};
};
}