mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Correct boot module structure
This commit is contained in:
parent
646fcbf7ec
commit
347d359863
4 changed files with 9 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
./de.nix
|
||||
./dm.nix
|
||||
./sound.nix
|
||||
./boot-loader.nix
|
||||
./boot.nix
|
||||
./printing.nix
|
||||
./syncthing.nix
|
||||
./nix-helper.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue