nix-conf/modules/boot/systemd/default.nix

24 lines
481 B
Nix

{ config, lib, ... }:
let cfg = config.jopejoe1.boot.systemd;
in {
options.jopejoe1.boot.systemd = {
enable = lib.mkEnableOption "Enable Systemd boot";
};
config = lib.mkIf cfg.enable {
boot = {
loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
editor = false;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
};
};
}