refactor(system): move boot options into their own file

This commit is contained in:
Felix Schröter 2025-07-17 14:01:06 +02:00
parent 18674ac22d
commit 526527f5dc
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 18 additions and 14 deletions

16
system/boot.nix Normal file
View file

@ -0,0 +1,16 @@
{ lib, pkgs, ... }:
{
boot.supportedFilesystems = lib.mkDefault [ "btrfs" ];
boot.kernelPackages = lib.mkOverride 800 pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.systemd.enable = true;
boot.plymouth.enable = true;
# prevents `systemd-vconsole-setup` failing during systemd initrd
console.earlySetup = true;
systemd.services.systemd-vconsole-setup.unitConfig.After = "local-fs.target";
}

View file

@ -2,6 +2,7 @@
{
imports = [
./boot.nix
./zram.nix
./i18n.nix
./nix.nix