98 lines
2.7 KiB
Nix
98 lines
2.7 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{
|
||
config,
|
||
lib,
|
||
pkgs,
|
||
modulesPath,
|
||
...
|
||
}:
|
||
|
||
{
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [
|
||
"xhci_pci"
|
||
"ahci"
|
||
"nvme"
|
||
"usb_storage"
|
||
"usbhid"
|
||
"sd_mod"
|
||
];
|
||
|
||
boot.zfs.package = pkgs.zfs;
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
boot.kernelParams = [
|
||
"xe.force_probe=e212"
|
||
"xe.vram_force_mmapable=1"
|
||
"transparent_hugepage=always"
|
||
];
|
||
|
||
services.udev.extraRules = ''
|
||
ACTION=="add", SUBSYSTEM=="drm", KERNEL=="card*", ATTR{device/tile0/gt0/engines/ccs0/job_timeout_ms}="100000"
|
||
ACTION=="add", SUBSYSTEM=="drm", KERNEL=="card*", ATTR{device/tile0/gt0/engines/rcs0/job_timeout_ms}="100000"
|
||
'';
|
||
|
||
hardware.enableRedistributableFirmware = true;
|
||
hardware.firmware = [ pkgs.linux-firmware ];
|
||
|
||
environment.systemPackages = with pkgs; [
|
||
mkl
|
||
];
|
||
|
||
hardware.graphics = {
|
||
enable = true;
|
||
extraPackages = with pkgs; [
|
||
vpl-gpu-rt
|
||
mkl
|
||
|
||
#hardware decode and opencl
|
||
intel-media-driver # LIBVA_DRIVER_NAME=iHD (for HD Graphics starting Broadwell (2014) and newer)
|
||
intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
||
libvdpau-va-gl
|
||
intel-compute-runtime
|
||
intel-ocl
|
||
intel-graphics-compiler
|
||
level-zero
|
||
vulkan-loader
|
||
vulkan-validation-layers
|
||
|
||
];
|
||
};
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/7789ad41-d578-40bc-bf86-b761e0a4921e";
|
||
fsType = "btrfs";
|
||
};
|
||
|
||
boot.initrd.luks.devices."NIXROOT".device =
|
||
"/dev/disk/by-uuid/082790fd-3d4b-4307-8a43-b9c56bd86e03";
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/3DE0-D86E";
|
||
fsType = "vfat";
|
||
options = [
|
||
"fmask=0022"
|
||
"dmask=0022"
|
||
];
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||
# still possible to use this option, but it's recommended to use it in conjunction
|
||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||
networking.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.enp7s0f3u2.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|