sperate boot into option

This commit is contained in:
jopejoe1 2024-01-02 20:58:18 +01:00
parent 414c9bd0eb
commit 4feef7b1c1
9 changed files with 36 additions and 45 deletions

View file

@ -0,0 +1,24 @@
{ 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";
};
};
};
};
}