mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-13 19:30:41 +02:00
* feat: idols-ai - use intel intel iGPU by default, choose Nvidia dGPU manullay - via prime
* fix: niri - update output names for new motherboard
* fix: niri - DP-1 with prime offload mode - supports only 120HZ
* flake.lock: Update
Flake lock file updates:
• Updated input 'nixpkgs-master':
'github:nixos/nixpkgs/3879e47ce293fb2932d656aa56551a8e80718533?narHash=sha256-siN4x7y/S0FOdjPC1W0Z/vrX4Rlu%2BVClkEGngmSd0vM%3D' (2026-03-24)
→ 'github:nixos/nixpkgs/03de9fe87cb2dcec8da9dbaa3ad1c71ea7fef223?narHash=sha256-B7GmxbRADkklyXzV1ahgY4QhCpbQ3crzPCCs2hf6bPM%3D' (2026-04-26)
* flake.lock: Update
Flake lock file updates:
• Updated input 'nixpkgs-stable':
'github:nixos/nixpkgs/e9f278faa1d0c2fc835bd331d4666b59b505a410?narHash=sha256-Jms57zzlFf64ayKzzBWSE2SGvJmK%2BNGt8Gli71d9kmY%3D' (2026-03-14)
→ 'github:nixos/nixpkgs/a4bf06618f0b5ee50f14ed8f0da77d34ecc19160?narHash=sha256-AIiMJiqvGrN4HyLEbKAoCSRRYn0rnlW5VbKNIMIYqm4%3D' (2026-04-25)
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
|
|
imports = [
|
|
(modulesPath + "/hardware/cpu/intel-npu.nix")
|
|
];
|
|
|
|
# Intel NPU support
|
|
hardware.cpu.intel.npu.enable = true;
|
|
|
|
# kvm virtualization support
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModprobeConfig = "options kvm_intel nested=1";
|
|
boot.extraModulePackages = [ ];
|
|
|
|
# Intel Graphics
|
|
# https://wiki.nixos.org/wiki/Intel_Graphics
|
|
|
|
services.xserver.videoDrivers = [ "modesetting" ];
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
# Required for modern Intel GPUs (Xe iGPU and ARC)
|
|
intel-media-driver # VA-API (iHD) userspace
|
|
vpl-gpu-rt # oneVPL (QSV) runtime
|
|
|
|
# Optional (compute / tooling):
|
|
intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
|
|
];
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
LIBVA_DRIVER_NAME = "iHD"; # Prefer the modern iHD backend
|
|
};
|
|
|
|
# May help if FFmpeg/VAAPI/QSV init fails (esp. on Arc with i915):
|
|
hardware.enableRedistributableFirmware = true;
|
|
boot.kernelParams = [ "i915.enable_guc=3" ];
|
|
|
|
# May help services that have trouble accessing /dev/dri (e.g., jellyfin/plex):
|
|
# users.users.<service>.extraGroups = [ "video" "render" ];
|
|
}
|