From 9f1d4c2bfe6b18320d7213ced0d82bf9546166e8 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Tue, 4 Feb 2025 12:53:49 +0100 Subject: [PATCH] home: add wayland-pipewire-idle-inhibit service --- home/home.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/home/home.nix b/home/home.nix index 9bd4e5f..6bee0d0 100644 --- a/home/home.nix +++ b/home/home.nix @@ -315,19 +315,17 @@ in systemd.user = { services = { - /* - himalaya = { - Unit.Description = "Himalaya new messages notifier"; + wayland-pipewire-idle-inhibit = { + Unit.Description = "inhibit sleep while audio output is active"; Service = { - ExecStart = "himalaya notify"; - Restart = "always"; - RestartSec = 10; + ExecStart = "${lib.getExe pkgs.wayland-pipewire-idle-inhibit}"; + Restart = "always"; + RestartSec = 10; }; Install = { - WantedBy = [ "multi-user.target" ]; + WantedBy = [ "graphical-session.target" ]; }; - }; - */ + }; }; }; }