From 9e28e6eebc905e1de97483bb8590ca1bf959fb06 Mon Sep 17 00:00:00 2001 From: kiana-S Date: Mon, 13 May 2024 21:42:49 -0400 Subject: [PATCH] Fix idle inhibitor derivation --- home-manager/wayland/idle.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/home-manager/wayland/idle.nix b/home-manager/wayland/idle.nix index 89281b2..1de2a00 100644 --- a/home-manager/wayland/idle.nix +++ b/home-manager/wayland/idle.nix @@ -1,11 +1,13 @@ { pkgs, lib, ... }: let - wayland-idle-inhibitor = pkgs.python312Packages.buildPythonApplication { + wayland-idle-inhibitor = pkgs.stdenv.mkDerivation { pname = "wayland-idle-inhibitor"; version = "1.0.0"; - propagatedBuildInputs = with pkgs.python312Packages; [ - pywayland + buildInputs = [ + (pkgs.python312.withPackages (ps: with ps; [ + pywayland + ])) ]; dontUnpack = true; @@ -13,7 +15,7 @@ let install -Dm755 ${./idle/wayland-idle-inhibitor.py} \ $out/bin/wayland-idle-inhibitor ''; - } + }; in { services.hypridle.enable = true; @@ -25,7 +27,7 @@ in { listener = [ { timeout = 120; - on-timeout = "swaylock -f --grace=180" + on-timeout = "swaylock -f --grace=180"; } { timeout = 600;