changes
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
(modulesPath + "/hardware/cpu/intel-npu.nix")
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
@@ -30,6 +31,7 @@
|
|||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
hardware.cpu.intel.npu.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,6 +56,8 @@
|
|||||||
telegram-desktop
|
telegram-desktop
|
||||||
equibop
|
equibop
|
||||||
obsidian
|
obsidian
|
||||||
|
intel-gpu-tools
|
||||||
|
brightnessctl
|
||||||
];
|
];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -69,23 +69,29 @@
|
|||||||
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
|
intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
|
||||||
|
};
|
||||||
hardware = {
|
hardware = {
|
||||||
# firmware = [ pkgs.intel-npu-driver ];
|
# firmware = [ pkgs.intel-npu-driver ];
|
||||||
cpu.intel = {
|
|
||||||
# npu.enable = true;
|
|
||||||
};
|
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# https://github.com/intel/libvpl?tab=readme-ov-file#dispatcher-behavior-when-targeting-intel-gpus
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
vpl-gpu-rt
|
# vpl-gpu-rt
|
||||||
intel-media-driver # VA-API (iHD) userspace
|
intel-media-driver # VA-API (iHD) userspace
|
||||||
intel-vaapi-driver
|
|
||||||
# vpl-gpu-rt # oneVPL (QSV) runtime
|
# vpl-gpu-rt # oneVPL (QSV) runtime
|
||||||
intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
|
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 = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -147,13 +153,13 @@
|
|||||||
"ahci.mobile_lpm_policy=1"
|
"ahci.mobile_lpm_policy=1"
|
||||||
"intel_idle.max_cstate=11"
|
"intel_idle.max_cstate=11"
|
||||||
"i915.modeset=1"
|
"i915.modeset=1"
|
||||||
"quiet"
|
# "quiet"
|
||||||
"splash"
|
# "splash"
|
||||||
# "idle=halt"
|
# "idle=halt"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
HandleLidSwitch = "hibernate";
|
HandleLidSwitch = "suspend";
|
||||||
HandleLidSwitchExternalPower = "suspend";
|
HandleLidSwitchExternalPower = "suspend";
|
||||||
HandleLidSwitchDocked = "ignore";
|
HandleLidSwitchDocked = "ignore";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
"XCURSOR_THEME,BreezeX-RosePine-Linux"
|
"XCURSOR_THEME,BreezeX-RosePine-Linux"
|
||||||
"XCURSOR_SIZE,24"
|
"XCURSOR_SIZE,24"
|
||||||
"HYPRCURSOR_SIZE,24"
|
"HYPRCURSOR_SIZE,24"
|
||||||
"LIBVA_DRIVER_NAME,nvidia"
|
|
||||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||||
"WEBKIT_DISABLE_DMABUF_RENDERER,1" # maybe disable if nixos fixes alcom
|
"WEBKIT_DISABLE_DMABUF_RENDERER,1" # maybe disable if nixos fixes alcom
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
# CPU_MAX_PERF_ON_BAT = 30;
|
# CPU_MAX_PERF_ON_BAT = 30;
|
||||||
|
|
||||||
# CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
# 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_AC = "1";
|
||||||
# CPU_HWP_DYN_BOOST_ON_BAT = "0";
|
# CPU_HWP_DYN_BOOST_ON_BAT = "0";
|
||||||
# CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
# CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||||
|
|||||||
Reference in New Issue
Block a user