nixos/modules/hosts/nerv/configuration.nix
2026-09-01 20:20:50 +02:00

34 lines
732 B
Nix

{
config,
lib,
pkgs,
inputs,
...
}:
{
imports = [
./hardware-configuration.nix
../base/configuration.nix
];
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.loader.limine.enable = true;
boot.loader.limine.secureBoot.enable = true;
boot.loader.limine.extraEntries = ''
/Windows 11
protocol: efi
path: guid(c0016650-4bd8-4677-88cd-8eed4c897f03):/EFI/Microsoft/Boot/bootmgfw.efi
'';
networking.hostName = "nerv";
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}