Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Swap to Intel ARC GPU

+36 -9
+23 -8
hardware-configuration.nix
··· 9 9 (modulesPath + "/installer/scan/not-detected.nix") 10 10 ]; 11 11 12 - boot.kernelPackages = pkgs.linuxPackages_6_6; 12 + boot.kernelPackages = pkgs.linuxPackages; 13 13 boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "dm-raid" "raid1" ]; 14 - boot.initrd.kernelModules = [ "dm-snapshot" "dm-raid" "raid1" "amdgpu" ]; 14 + boot.initrd.kernelModules = [ "dm-snapshot" "dm-raid" "raid1" ]; 15 15 boot.kernelModules = [ "kvm-amd" "zfs" ]; 16 + boot.kernelParams = [ "i915.enable_guc=3" ]; 16 17 boot.extraModulePackages = [ ]; 17 18 18 19 fileSystems."/" = ··· 41 42 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 42 43 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 43 44 45 + #nixpkgs.config.packageOverrides = pkgs: { 46 + # vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; 47 + #}; 44 48 hardware.graphics = { 45 49 enable = true; 46 50 extraPackages = with pkgs; [ 47 - mesa 48 - #libva 49 - amdvlk 50 - rocmPackages.clr.icd 51 + intel-media-driver 52 + #vaapiVdpau 53 + #libvdpau-va-gl # unmaintained, very old 54 + intel-compute-runtime 55 + vpl-gpu-rt 51 56 ]; 57 + #extraPackages32 = with pkgs; [ 58 + # intel-media-driver 59 + # vaapiVdpau 60 + # #libvdpau-va-gl 61 + # intel-compute-runtime 62 + # vpl-gpu-rt 63 + #]; 52 64 }; 53 65 environment.variables = { 54 - ROC_ENABLE_PRE_VEGA = "1"; 66 + VDPAU_DRIVER = "va_gl"; 67 + LIBVA_DRIVER_NAME = "iHD"; 68 + LIBVA_DRIVERS_PATH = "/run/opengl-driver/lib/dri"; 69 + GST_VAAPI_ALL_DRIVERS = "1"; 55 70 }; 56 - services.xserver.videoDrivers = [ "amdgpu" ]; 71 + #services.xserver.videoDrivers = [ "intel" ]; 57 72 }
+12
packages.nix
··· 65 65 # ZFS / filesystem stuff 66 66 zfs 67 67 68 + # GPU stuff 69 + intel-gpu-tools 70 + (ffmpeg-full.override { 71 + withUnfree = true; 72 + withMfx = false; 73 + withSmallBuild = false; 74 + withTensorflow = false; 75 + }) 76 + libva 77 + libva-utils 78 + nvtopPackages.intel 79 + 68 80 # Sway stuff 69 81 wdisplays 70 82 mako
+1 -1
users.nix
··· 19 19 users.users.noah = { 20 20 isNormalUser = true; 21 21 shell = pkgs.fish; 22 - extraGroups = [ "wheel" "video" "nas" "nats" "litterbox" "httpd" ]; # Enable ‘sudo’ for the user. 22 + extraGroups = [ "wheel" "video" "render" "nas" "nats" "litterbox" "httpd" ]; # Enable ‘sudo’ for the user. 23 23 hashedPasswordFile = "/etc/nixos/noah-password"; 24 24 openssh.authorizedKeys.keys = 25 25 lib.strings.splitString "\n" (builtins.readFile (builtins.fetchurl {