nix-config/overhaul/modules/boot/systemd.nix
2025-02-11 17:31:06 +01:00

25 lines
460 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.systemd;
in {
options = {
horseman.boot.systemd = {
enable = mkEnableOption "Enables systemd, the bootloader";
};
};
config = mkIf cfg.enable {
boot.kernelModules = [ "snd-seq" "snd-rawmidi" ];
boot.loader.systemd-boot = {
enable = true;
configurationLimit = 10;
};
};
}