mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 10:36:12 +01:00
45 lines
916 B
Nix
45 lines
916 B
Nix
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
||
|
#
|
||
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||
|
{ pkgs, lib, ... }:
|
||
|
let
|
||
|
inherit (lib)
|
||
|
singleton;
|
||
|
|
||
|
kernelPackages = pkgs.linuxKernel.packages.linux_6_1;
|
||
|
in
|
||
|
{
|
||
|
boot = {
|
||
|
initrd.availableKernelModules = [
|
||
|
"xhci_pci"
|
||
|
"ahci"
|
||
|
"usbhid"
|
||
|
"usb_storage"
|
||
|
"sd_mod"
|
||
|
"nvme"
|
||
|
];
|
||
|
|
||
|
initrd.kernelModules = [];
|
||
|
kernelModules = ["i2c-dev" "kvm-amd"];
|
||
|
|
||
|
kernelParams = [
|
||
|
"zfs.zfs_arc_max=8589934592"
|
||
|
"zfs.zfs_arc_sys_free=3221225472"
|
||
|
];
|
||
|
kernelPackages = kernelPackages;
|
||
|
|
||
|
zfs.enableUnstable = true;
|
||
|
supportedFilesystems = singleton "zfs";
|
||
|
};
|
||
|
|
||
|
hardware.enableRedistributableFirmware = true;
|
||
|
hardware.nvidia.package = kernelPackages.nvidia_x11_beta;
|
||
|
|
||
|
hardware.nvidia = {
|
||
|
nvidiaPersistenced = true;
|
||
|
powerManagement.enable = true;
|
||
|
|
||
|
modesetting.enable = true;
|
||
|
};
|
||
|
}
|