mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
sperate boot into option
This commit is contained in:
parent
414c9bd0eb
commit
4feef7b1c1
9 changed files with 36 additions and 45 deletions
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue