{ config, ... }: { # Optimisation # nixpkgs.hostPlatform = { # gcc.arch = "tigerlake"; # gcc.tune = "tigerlake"; # system = "x86_64-linux"; # }; nix.settings.system-features = [ "gccarch-tigerlake" "nixos-test" "benchmark" "big-parallel" "kvm" ]; # Increasing the limit of files to help with compilation security.pam.loginLimits = [{ domain = "*"; type = "soft"; item = "nofile"; value = "8192"; }]; # Disabling failing test # nixpkgs.overlays = [ (final: prev: { # orc = prev.orc.overrideAttrs (_: { doCheck = false; }); # }) ]; # NVidia services.xserver.videoDrivers = [ "nvidia" ]; hardware.opengl = { enable = true; driSupport = true; driSupport32Bit = true; }; hardware.nvidia = { # Modesetting is needed for most wayland compositors modesetting.enable = true; # Use the open source version of the kernel module # Only available on driver 515.43.04+ open = true; # Enable the nvidia settings menu nvidiaSettings = true; # Optionally, you may need to select the appropriate driver version for your specific GPU package = config.boot.kernelPackages.nvidiaPackages.stable; }; # For containers virtualisation.containers.cdi.dynamic.nvidia.enable = true; }