mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-05-13 14:25:08 +02:00
gui: Add a sleep inhibitor with pipewire
This commit is contained in:
parent
3b21fbef64
commit
a602989fbb
3 changed files with 114 additions and 3 deletions
17
gui/hm.nix
17
gui/hm.nix
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue