add systemD boot config
This commit is contained in:
parent
782387d9dd
commit
c0972def8c
3 changed files with 30 additions and 15 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
19
flake.nix
19
flake.nix
|
|
@ -92,19 +92,32 @@
|
|||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
}
|
||||
|
||||
({ pkgs, lib, ... }: {
|
||||
(
|
||||
{
|
||||
config,
|
||||
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;
|
||||
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";
|
||||
};
|
||||
})
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ hl.monitor({
|
|||
cm = "wide",
|
||||
})
|
||||
hl.monitor({
|
||||
output = "DP-2",
|
||||
output = "DP-5",
|
||||
mode = "2560x1440@165",
|
||||
position = "auto",
|
||||
scale = "1",
|
||||
|
|
|
|||
Loading…
Reference in a new issue