mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 02:06:32 +05:30
refactor(boot): consolidate boot loader and kernel settings
This commit is contained in:
@@ -59,9 +59,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
# --- Boot ---
|
||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||
|
||||
# --- Networking ---
|
||||
networking = {
|
||||
hostName = hostName;
|
||||
|
||||
@@ -56,9 +56,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
# --- Boot ---
|
||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||
|
||||
# --- Networking ---
|
||||
networking = {
|
||||
hostName = hostName;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{
|
||||
flake.modules.nixos.boot = {
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader = {
|
||||
timeout = 1;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
11
modules/nixos/boot/misc.nix
Normal file
11
modules/nixos/boot/misc.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
flake.modules.nixos.boot =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
boot = {
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user