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

7
modules/boot/default.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./systemd
];
}

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";
};
};
};
};
}

View file

@ -6,6 +6,7 @@
./audio
./auto-update
./bluetooth
./boot
./events
./kodi
./local

View file

@ -67,6 +67,7 @@ in {
system.stateVersion = "24.05";
services.openssh.enable = true;
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
};
}