add systemD boot config

This commit is contained in:
lucy 2026-07-18 21:56:22 +02:00
commit c0972def8c
3 changed files with 30 additions and 15 deletions

View file

@ -1,7 +1,6 @@
{ {
config, config,
pkgs, pkgs,
inputs,
... ...
}: }:
{ {
@ -11,7 +10,10 @@
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot = {
edk2-uefi-shell.enable = true;
configurationLimit = 5;
};
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages; boot.kernelPackages = pkgs.linuxPackages;
nix.settings.experimental-features = [ nix.settings.experimental-features = [

View file

@ -92,19 +92,32 @@
home-manager.extraSpecialArgs = { inherit inputs; }; home-manager.extraSpecialArgs = { inherit inputs; };
} }
({ pkgs, lib, ... }: { (
{
config,
pkgs,
lib,
...
}:
{
networking.hostName = lib.mkForce "nerv"; networking.hostName = lib.mkForce "nerv";
environment.systemPackages = [ environment.systemPackages = [
# For debugging and troubleshooting Secure Boot.
pkgs.sbctl pkgs.sbctl
]; ];
boot.loader.systemd-boot.enable = lib.mkForce false; boot.loader.systemd-boot.enable = lib.mkForce false;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
open = true;
package = config.boot.kernelPackages.nvidiaPackages.latest;
};
boot.lanzaboote = { boot.lanzaboote = {
enable = true; enable = true;
pkiBundle = "/var/lib/sbctl"; pkiBundle = "/var/lib/sbctl";
}; };
}) }
)
]; ];
}; };
}; };

View file

@ -14,7 +14,7 @@ hl.monitor({
cm = "wide", cm = "wide",
}) })
hl.monitor({ hl.monitor({
output = "DP-2", output = "DP-5",
mode = "2560x1440@165", mode = "2560x1440@165",
position = "auto", position = "auto",
scale = "1", scale = "1",