Files
nix/modules/boot/default.nix

19 lines
335 B
Nix

{ 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;
};
};
}