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

27 lines
479 B
Nix
Raw Permalink Normal View History

2024-01-02 20:58:18 +01:00
{ config, lib, ... }:
2024-07-10 23:02:54 +02:00
let
cfg = config.jopejoe1.boot.systemd;
in
{
2024-01-02 20:58:18 +01:00
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;
2024-02-06 19:40:33 +01:00
efiSysMountPoint = "/boot";
2024-01-02 20:58:18 +01:00
};
};
};
};
}