gui: Add a sleep inhibitor with pipewire

This commit is contained in:
traxys 2025-02-19 20:14:21 +01:00
parent 3b21fbef64
commit a602989fbb
3 changed files with 114 additions and 3 deletions

View file

@ -1,3 +1,6 @@
{
wayland-pipewire-idle-inhibit,
}:
{
config,
lib,
@ -5,7 +8,10 @@
...
}:
{
imports = [ ./terminal ];
imports = [
./terminal
wayland-pipewire-idle-inhibit
];
home.packages = with pkgs; [
# IM
@ -98,6 +104,15 @@
nativeMessagingHosts = [ pkgs.firefoxpwa ];
};
services.wayland-pipewire-idle-inhibit = {
enable = true;
settings = {
verbosity = "INFO";
media_minimum_duration = 10;
idle_inhibitor = "wayland";
};
};
home.sessionVariables = {
BROWSER = "firefox";
NIXOS_OZONE_WL = 1;