nixos-config/hardware/base.nix
Felix Schröter a3da0a3163
fix: properly fix failing systemd-vconsole-setup during systemd initrd
Enable `console.earlySetup` as it's required for systemd-vconsole-setup.
2025-05-20 23:09:44 +02:00

23 lines
614 B
Nix

{ lib, pkgs, ... }:
{
imports = [
./firmware.nix
./solokeys.nix
./zsa.nix
];
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;
# prevents `systemd-vconsole-setup` failing during systemd initrd
console.earlySetup = true;
systemd.services.systemd-vconsole-setup.unitConfig.After = "local-fs.target";
services.smartd.enable = true;
services.smartd.notifications.x11.enable = true;
}