nix-config/modules/boot/loader/systemd.nix
2025-02-28 00:04:49 +01:00

22 lines
425 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.loader.systemd;
in {
options = {
horseman.boot.loader.systemd = {
enable = mkEnableOption "Sets systemd as the bootloader";
};
};
config = mkIf cfg.enable {
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 10;
};
}