40 lines
931 B
Nix
40 lines
931 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
boot = {
|
|
loader = {
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
device = "nodev";
|
|
useOSProber = true;
|
|
configurationLimit = 5;
|
|
gfxmodeBios = "1280x720";
|
|
gfxmodeEfi = "1280x720";
|
|
gfxpayloadBios = "keep";
|
|
extraConfig = ''
|
|
GRUB_DISABLE_OS_PROBER=false
|
|
GRUB_TERMINAL_OUTPUT=console
|
|
'';
|
|
};
|
|
efi = {
|
|
efiSysMountPoint = "/boot/efi";
|
|
canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
kernelParams = [
|
|
"nvidia-drm.modeset=1"
|
|
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
|
|
];
|
|
};
|
|
|
|
fileSystems."/home" = {
|
|
device = "/dev/disk/by-uuid/31dbc3a8-dfdc-4177-8d3e-2b6e294e7daf";
|
|
fsType = "btrfs";
|
|
};
|
|
|
|
swapDevices = [
|
|
{ device = "/dev/disk/by-uuid/f9da6980-510f-4cce-bff5-50a791346c07"; }
|
|
];
|
|
}
|