Hotfix hyprlock pull rate on nvidia

This commit is contained in:
SebastianStork 2024-04-18 23:10:17 +02:00
parent ae5cbff75d
commit d81fe4ef06
2 changed files with 13 additions and 3 deletions

View file

@ -1,7 +1,6 @@
{
inputs,
config,
pkgs,
lib,
...
}: {
@ -26,7 +25,7 @@
};
services.hypridle = let
hyprlockExe = "${lib.getExe inputs.hyprlock.packages.${pkgs.system}.default}";
hyprlockExe = "${lib.getExe config.programs.hyprlock.package}";
in {
enable = true;

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
inputs,
pkgs,
...
}: {
imports = [./default.nix];
home-manager.users.seb = {
@ -9,5 +13,12 @@
];
wayland.windowManager.hyprland.settings.monitor = "DP-2,2560x1440@144,0x0,1";
programs.hyprlock.package = inputs.hyprlock.packages.${pkgs.system}.default.overrideAttrs {
postPatch = ''
substituteInPlace src/core/hyprlock.cpp \
--replace "5000" "16"
'';
};
};
}