feat(bootloader): add enable option
This commit is contained in:
18
modules/boot/default.nix
Normal file
18
modules/boot/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.bootloader;
|
||||
in
|
||||
{
|
||||
options.bootloader.enable = lib.mkEnableOption "system bootloader";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
tmp.useTmpfs = config.host.highRam;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user