big staging update

Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
s0me1newithhand7s 2025-12-29 16:42:07 +03:00
parent 0bf4c9cfca
commit 2939b08891
324 changed files with 6897 additions and 6797 deletions

View file

@ -1,50 +1,51 @@
{
config,
pkgs,
lib,
...
config,
pkgs,
lib,
...
}: {
services = {
swayidle = {
enable = lib.mkIf (
config.home.gui.sessionType == "Sway"
)
true;
services = {
swayidle = {
enable =
lib.mkIf (
config.home.gui.sessionType == "Sway"
)
true;
events = [
{
event = "lock";
command = "${lib.getExe pkgs.swaylock}";
}
events = [
{
event = "lock";
command = "${lib.getExe pkgs.swaylock}";
}
{
event = "before-sleep";
command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power off'";
}
{
event = "before-sleep";
command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power off'";
}
{
event = "after-resume";
command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power on'";
}
];
{
event = "after-resume";
command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power on'";
}
];
timeouts = [
{
timeout = 300;
command = "${lib.getExe pkgs.brightnessctl} -s set 10";
resumeCommand = "${lib.getExe pkgs.brightnessctl} -r";
}
timeouts = [
{
timeout = 300;
command = "${lib.getExe pkgs.brightnessctl} -s set 10";
resumeCommand = "${lib.getExe pkgs.brightnessctl} -r";
}
{
timeout = 600;
command = "${lib.getExe pkgs.swaylock}";
}
{
timeout = 600;
command = "${lib.getExe pkgs.swaylock}";
}
{
timeout = 900;
command = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
}
];
};
{
timeout = 900;
command = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
}
];
};
};
}