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

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-08-21 11:05:56 -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;
};
};
}