mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 03:48:12 +09:00
21 lines
334 B
Nix
21 lines
334 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.system.boot.uefi;
|
|
in
|
|
{
|
|
options.my.system.boot.uefi = {
|
|
enable = lib.mkEnableOption "UEFI boot support";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
boot.loader = {
|
|
systemd-boot.enable = lib.mkDefault true;
|
|
efi.canTouchEfiVariables = lib.mkDefault true;
|
|
};
|
|
};
|
|
}
|