Fix idle inhibitor derivation
This commit is contained in:
parent
b4ae0e7547
commit
9e28e6eebc
|
@ -1,11 +1,13 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
wayland-idle-inhibitor = pkgs.python312Packages.buildPythonApplication {
|
wayland-idle-inhibitor = pkgs.stdenv.mkDerivation {
|
||||||
pname = "wayland-idle-inhibitor";
|
pname = "wayland-idle-inhibitor";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
propagatedBuildInputs = with pkgs.python312Packages; [
|
buildInputs = [
|
||||||
pywayland
|
(pkgs.python312.withPackages (ps: with ps; [
|
||||||
|
pywayland
|
||||||
|
]))
|
||||||
];
|
];
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
@ -13,7 +15,7 @@ let
|
||||||
install -Dm755 ${./idle/wayland-idle-inhibitor.py} \
|
install -Dm755 ${./idle/wayland-idle-inhibitor.py} \
|
||||||
$out/bin/wayland-idle-inhibitor
|
$out/bin/wayland-idle-inhibitor
|
||||||
'';
|
'';
|
||||||
}
|
};
|
||||||
in {
|
in {
|
||||||
|
|
||||||
services.hypridle.enable = true;
|
services.hypridle.enable = true;
|
||||||
|
@ -25,7 +27,7 @@ in {
|
||||||
listener = [
|
listener = [
|
||||||
{
|
{
|
||||||
timeout = 120;
|
timeout = 120;
|
||||||
on-timeout = "swaylock -f --grace=180"
|
on-timeout = "swaylock -f --grace=180";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 600;
|
timeout = 600;
|
||||||
|
|
Loading…
Reference in a new issue