This commit is contained in:
4DBug
2026-02-04 16:43:38 -06:00
parent d25f508b25
commit 37ff9e91ff
21 changed files with 934 additions and 0 deletions

37
new/modules/boot.nix Normal file
View File

@@ -0,0 +1,37 @@
{ config, pkgs, device, ... }:
{
boot = {
kernelModules = if (device == "desktop") then ["nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" "uinput"] else [];
kernelParams = if (device == "desktop") then ["nvidia-drm.modeset=1" "nvidia_drm.fbdev=1"] else [];
kernelPackages = pkgs.linuxPackages_zen;
kernel.sysctl = {
"fs.file-max" = 524288;
};
initrd.checkJournalingFS = false;
loader = {
grub.splashImage = null;
systemd-boot = {
enable = true;
configurationLimit = 25;
};
efi.canTouchEfiVariables = true;
};
};
swapDevices = [{
device = "/var/lib/swapfile";
size = 8 * 1024;
}];
zramSwap = {
enable = true;
memoryMax = 64 * 1024 * 1024 * 1024;
};
}