This commit is contained in:
2026-03-23 10:05:56 +00:00
parent 9ef5bb82c6
commit fbf8265a08
5 changed files with 20 additions and 11 deletions

View File

@@ -16,6 +16,7 @@
}:
{
imports = [
(modulesPath + "/hardware/cpu/intel-npu.nix")
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
@@ -30,6 +31,7 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel.npu.enable = true;
};
};
}

View File

@@ -56,6 +56,8 @@
telegram-desktop
equibop
obsidian
intel-gpu-tools
brightnessctl
];
nixpkgs.config.allowUnfree = true;
};

View File

@@ -69,23 +69,29 @@
services.gnome.gnome-keyring.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
};
hardware = {
# firmware = [ pkgs.intel-npu-driver ];
cpu.intel = {
# npu.enable = true;
};
graphics = {
enable = true;
# https://github.com/intel/libvpl?tab=readme-ov-file#dispatcher-behavior-when-targeting-intel-gpus
extraPackages = with pkgs; [
vpl-gpu-rt
# vpl-gpu-rt
intel-media-driver # VA-API (iHD) userspace
intel-vaapi-driver
# vpl-gpu-rt # oneVPL (QSV) runtime
intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
];
};
};
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD";
}; # Force intel-media-driver
# services.fwupd = {
# enable = true;
# };
services.openssh = {
enable = true;
settings = {
@@ -147,13 +153,13 @@
"ahci.mobile_lpm_policy=1"
"intel_idle.max_cstate=11"
"i915.modeset=1"
"quiet"
"splash"
# "quiet"
# "splash"
# "idle=halt"
];
services.logind.settings.Login = {
HandleLidSwitch = "hibernate";
HandleLidSwitch = "suspend";
HandleLidSwitchExternalPower = "suspend";
HandleLidSwitchDocked = "ignore";
};

View File

@@ -26,7 +26,6 @@
"XCURSOR_THEME,BreezeX-RosePine-Linux"
"XCURSOR_SIZE,24"
"HYPRCURSOR_SIZE,24"
"LIBVA_DRIVER_NAME,nvidia"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
"WEBKIT_DISABLE_DMABUF_RENDERER,1" # maybe disable if nixos fixes alcom
];

View File

@@ -37,7 +37,7 @@
# CPU_MAX_PERF_ON_BAT = 30;
# CPU_SCALING_GOVERNOR_ON_AC = "performance";
# CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
# CPU_HWP_DYN_BOOST_ON_AC = "1";
# CPU_HWP_DYN_BOOST_ON_BAT = "0";
# CPU_ENERGY_PERF_POLICY_ON_BAT = "power";