mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 13:29:22 +02:00
sperate boot into option
This commit is contained in:
parent
414c9bd0eb
commit
4feef7b1c1
9 changed files with 36 additions and 45 deletions
7
modules/boot/default.nix
Normal file
7
modules/boot/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./systemd
|
||||
];
|
||||
}
|
24
modules/boot/systemd/default.nix
Normal file
24
modules/boot/systemd/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -6,6 +6,7 @@
|
|||
./audio
|
||||
./auto-update
|
||||
./bluetooth
|
||||
./boot
|
||||
./events
|
||||
./kodi
|
||||
./local
|
||||
|
|
|
@ -67,6 +67,7 @@ in {
|
|||
|
||||
system.stateVersion = "24.05";
|
||||
services.openssh.enable = true;
|
||||
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue