things
This commit is contained in:
@@ -126,14 +126,14 @@
|
||||
boot.binfmt.emulatedSystems = [
|
||||
"aarch64-linux"
|
||||
];
|
||||
services.scx = {
|
||||
enable = true;
|
||||
package = pkgs.scx.rustscheds;
|
||||
};
|
||||
systemd.services.scx.environment = {
|
||||
SCX_SCHEDULER_OVERRIDE = "scx_lavd";
|
||||
SCX_FLAGS_OVERRIDE = "--performance --no-core-compaction";
|
||||
};
|
||||
# services.scx = {
|
||||
# enable = true;
|
||||
# package = pkgs.scx.rustscheds;
|
||||
# };
|
||||
# systemd.services.scx.environment = {
|
||||
# SCX_SCHEDULER_OVERRIDE = "scx_lavd";
|
||||
# SCX_FLAGS_OVERRIDE = "--performance --no-core-compaction";
|
||||
# };
|
||||
systemd.oomd = {
|
||||
enable = true;
|
||||
enableUserSlices = true;
|
||||
|
||||
@@ -93,16 +93,22 @@
|
||||
intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
|
||||
};
|
||||
hardware = {
|
||||
# firmware = [ pkgs.intel-npu-driver ];
|
||||
# Qualcomm Adreno X1-85 (freedreno/turnip) + IRIS need the qcom
|
||||
# firmware blobs (gen70500_sqe.fw / gmu.bin / zap.mbn). On most
|
||||
# Snapdragon X laptops these must be extracted from Windows unless
|
||||
# shipped by linux-firmware (e.g. ThinkPad T14s Gen 6).
|
||||
firmware = [ pkgs.linux-firmware ];
|
||||
graphics = {
|
||||
enable = true;
|
||||
# Adreno has no userspace driver package to add here: GL/Vulkan
|
||||
# (freedreno/turnip) come from mesa (auto-included), and IRIS video
|
||||
# has no usable VA-API backend yet, so extraPackages stays empty.
|
||||
extraPackages = with pkgs; [
|
||||
];
|
||||
};
|
||||
};
|
||||
environment.sessionVariables = {
|
||||
LIBVA_DRIVER_NAME = "iHD";
|
||||
}; # Force intel-media-driver
|
||||
# NOTE: removed LIBVA_DRIVER_NAME="iHD" — that forces the Intel media
|
||||
# driver and is wrong on Qualcomm Adreno (aarch64).
|
||||
|
||||
# services.fwupd = {
|
||||
# enable = true;
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.vulkan-loader ]}" \
|
||||
--add-flags "--enable-features=AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiOnNvidiaGPUs,VaapiIgnoreDriverChecks" \
|
||||
--add-flags "--ignore-gpu-blocklist" \
|
||||
--add-flags "--disable-gpu-sandbox"
|
||||
'';
|
||||
};
|
||||
in
|
||||
@@ -54,15 +53,15 @@
|
||||
xdg.configFile."net.imput.helium/WidevineCdm/latest-component-updated-widevine-cdm" = {
|
||||
text = ''{"Path":"${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm"}'';
|
||||
};
|
||||
wayland.windowManager.hyprland.extraLuaFiles = lib.mkIf settings.default {
|
||||
"helium-bind.lua" = {
|
||||
autoLoad = true;
|
||||
content = ''
|
||||
-- Helium launcher bind (lua config: settings.bind cannot express dispatchers)
|
||||
hl.bind("SUPER + E", hl.dsp.exec_cmd("helium"))
|
||||
'';
|
||||
};
|
||||
};
|
||||
wayland.windowManager.hyprland.extraLuaFiles = lib.mkIf settings.default {
|
||||
"helium-bind.lua" = {
|
||||
autoLoad = true;
|
||||
content = ''
|
||||
-- Helium launcher bind (lua config: settings.bind cannot express dispatchers)
|
||||
hl.bind("SUPER + E", hl.dsp.exec_cmd("helium"))
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
};
|
||||
# Most energy efficent scheduler setup..
|
||||
systemd.services.scx.environment = {
|
||||
SCX_SCHEDULER_OVERRIDE = "scx_lavd";
|
||||
SCX_FLAGS_OVERRIDE = "--powersave --no-core-compaction";
|
||||
# SCX_SCHEDULER_OVERRIDE = "scx_lavd";
|
||||
# SCX_FLAGS_OVERRIDE = "--powersave --no-core-compaction";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
enable = false;
|
||||
};
|
||||
video = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user