From c0972def8c0eca7ecf69b2a5d04226bd76bf05ec Mon Sep 17 00:00:00 2001 From: lucy Date: Sat, 18 Jul 2026 21:56:22 +0200 Subject: [PATCH] add systemD boot config --- configuration.nix | 6 ++++-- flake.nix | 37 +++++++++++++++++++++++++------------ home/hyprland.lua | 2 +- 3 files changed, 30 insertions(+), 15 deletions(-) diff --git a/configuration.nix b/configuration.nix index 569e0db..165c19a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,7 +1,6 @@ { config, pkgs, - inputs, ... }: { @@ -11,7 +10,10 @@ /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.kernelPackages = pkgs.linuxPackages; nix.settings.experimental-features = [ diff --git a/flake.nix b/flake.nix index a1db0b6..4ab80e3 100644 --- a/flake.nix +++ b/flake.nix @@ -92,19 +92,32 @@ home-manager.extraSpecialArgs = { inherit inputs; }; } - ({ pkgs, lib, ... }: { - networking.hostName = lib.mkForce "nerv"; - environment.systemPackages = [ - # For debugging and troubleshooting Secure Boot. - pkgs.sbctl - ]; - boot.loader.systemd-boot.enable = lib.mkForce false; + ( + { + config, + pkgs, + lib, + ... + }: + { + networking.hostName = lib.mkForce "nerv"; + environment.systemPackages = [ + pkgs.sbctl + ]; + 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 = { - enable = true; - pkiBundle = "/var/lib/sbctl"; - }; - }) + boot.lanzaboote = { + enable = true; + pkiBundle = "/var/lib/sbctl"; + }; + } + ) ]; }; }; diff --git a/home/hyprland.lua b/home/hyprland.lua index 87a7604..2c11d4d 100644 --- a/home/hyprland.lua +++ b/home/hyprland.lua @@ -14,7 +14,7 @@ hl.monitor({ cm = "wide", }) hl.monitor({ - output = "DP-2", + output = "DP-5", mode = "2560x1440@165", position = "auto", scale = "1",