dotfiles/nixos/systems/omen/hardware.nix
magic_rb 85354c4eb5
Implement and utilize bumps
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-05-14 22:36:58 +02:00

85 lines
1.5 KiB
Nix

# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
#
# SPDX-License-Identifier: LGPL-3.0-or-later
{
pkgs,
lib,
inputs',
options,
config,
...
}: let
inherit
(lib)
singleton
mkForce
mapAttrs
mkOverride
filter
;
kernelPackages = pkgs.linuxKernel.packages.linux_6_8;
in {
environment.systemPackages = [
kernelPackages.turbostat
];
hardware.cpu.intel.updateMicrocode = true;
boot = {
initrd.systemd.enable = true;
initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"sr_mod"
"rtsx_pci_sdmmc"
"nvme"
"vmd"
];
initrd.kernelModules = [
"dm_crypt"
"encrypted_keys"
"trusted"
"nhpoly1305_avx2"
"nhpoly1305_sse2"
"nhpoly1305"
"crypto_null"
"polyval_clmulni"
"polyval_generic"
"gf128mul"
"dm_mod"
"crypto_simd"
"cryptd"
"adiantum"
"libpoly1305"
"libchacha20poly1305"
"chacha_x86_64"
"libchacha"
"poly1305_x86_64"
];
kernelModules = [
"kvm-intel"
];
kernelParams = [
"zfs.zfs_arc_max=8589934592"
"zfs.zfs_arc_sys_free=3221225472"
"nouveau.config=NvGspRm=1"
"usbcore.autosuspend=-1"
];
kernelPackages = kernelPackages;
zfs.enableUnstable = true;
};
hardware.enableRedistributableFirmware = true;
hardware.tuxedo-keyboard.enable = true;
chaotic.mesa-git = {
enable = true;
fallbackSpecialisation = false;
};
}