Correct boot module structure

This commit is contained in:
SebastianStork 2024-06-04 17:39:17 +02:00
parent 646fcbf7ec
commit 347d359863
4 changed files with 9 additions and 9 deletions

View file

@ -1,12 +1,12 @@
{ config, lib, ... }:
{
options.myConfig.boot-loader = {
systemd-boot.enable = lib.mkEnableOption "";
options.myConfig.boot = {
loader.systemd-boot.enable = lib.mkEnableOption "";
silent = lib.mkEnableOption "";
};
config = lib.mkMerge [
(lib.mkIf config.myConfig.boot-loader.systemd-boot.enable {
(lib.mkIf config.myConfig.boot.loader.systemd-boot.enable {
boot.tmp.cleanOnBoot = true;
boot.loader = {
systemd-boot = {
@ -20,7 +20,7 @@
systemd.watchdog.rebootTime = "10";
})
(lib.mkIf config.myConfig.boot-loader.silent {
(lib.mkIf config.myConfig.boot.silent {
boot = {
kernelParams = [
"quiet"

View file

@ -10,7 +10,7 @@
./de.nix
./dm.nix
./sound.nix
./boot-loader.nix
./boot.nix
./printing.nix
./syncthing.nix
./nix-helper.nix