diff --git a/config/hosts/aspects/doloro-laptop/hardware.nix b/config/hosts/aspects/doloro-laptop/hardware.nix index a935fcf..ecf5adf 100644 --- a/config/hosts/aspects/doloro-laptop/hardware.nix +++ b/config/hosts/aspects/doloro-laptop/hardware.nix @@ -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; }; }; } diff --git a/config/hosts/aspects/doloro-laptop/home.nix b/config/hosts/aspects/doloro-laptop/home.nix index aa381ab..c94f18f 100644 --- a/config/hosts/aspects/doloro-laptop/home.nix +++ b/config/hosts/aspects/doloro-laptop/home.nix @@ -56,6 +56,8 @@ telegram-desktop equibop obsidian + intel-gpu-tools + brightnessctl ]; nixpkgs.config.allowUnfree = true; }; diff --git a/config/hosts/aspects/doloro-laptop/host.nix b/config/hosts/aspects/doloro-laptop/host.nix index 2781b84..7a80aa2 100644 --- a/config/hosts/aspects/doloro-laptop/host.nix +++ b/config/hosts/aspects/doloro-laptop/host.nix @@ -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"; }; diff --git a/config/modules/hyprland/doloro-settings.nix b/config/modules/hyprland/doloro-settings.nix index 8ba461c..5900eec 100644 --- a/config/modules/hyprland/doloro-settings.nix +++ b/config/modules/hyprland/doloro-settings.nix @@ -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 ]; diff --git a/config/modules/power-management/tlp.nix b/config/modules/power-management/tlp.nix index ef17f72..7d65206 100644 --- a/config/modules/power-management/tlp.nix +++ b/config/modules/power-management/tlp.nix @@ -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";