dotfiles/modules/os/core/bootloader.nix
eriedaberrie c40a102032 Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-09-27 23:01:18 -07:00

24 lines
476 B
Nix

{ config, lib, ... }:
let
cfg = config.my.bootloader;
in {
options.my.bootloader = {
type = lib.mkOption {
type = with lib.types; nullOr (enum [ "systemdBoot" ]);
default = null;
};
};
config = {
boot.loader = lib.mkIf (cfg.type != null) {
systemd-boot = lib.mkIf (cfg.type == "systemdBoot") {
enable = true;
editor = false;
};
efi.canTouchEfiVariables = true;
timeout = lib.mkDefault 0;
};
};
}