refactor(boot): consolidate boot loader and kernel settings

This commit is contained in:
tux
2026-05-09 05:04:40 +05:30
parent f7d688b6c6
commit 0de17e6b4b
4 changed files with 15 additions and 7 deletions

View File

@@ -59,9 +59,6 @@
}; };
}; };
# --- Boot ---
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
# --- Networking --- # --- Networking ---
networking = { networking = {
hostName = hostName; hostName = hostName;

View File

@@ -56,9 +56,6 @@
}; };
}; };
# --- Boot ---
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
# --- Networking --- # --- Networking ---
networking = { networking = {
hostName = hostName; hostName = hostName;

View File

@@ -1,5 +1,8 @@
{ {
flake.modules.nixos.boot = { flake.modules.nixos.boot = {
boot.loader.efi.canTouchEfiVariables = true; boot.loader = {
timeout = 1;
efi.canTouchEfiVariables = true;
};
}; };
} }

View File

@@ -0,0 +1,11 @@
{
flake.modules.nixos.boot =
{ pkgs, ... }:
{
boot = {
consoleLogLevel = 0;
initrd.verbose = false;
kernelPackages = pkgs.linuxPackages_zen;
};
};
}