added back simple desktop stack as alternatives

This commit is contained in:
Semere Meharena Mebrahtom 2026-07-21 12:36:35 +02:00
parent febd23355d
commit 552ae67f6a
Signed by: semere
GPG key ID: 7FC937214DF30488
9 changed files with 153 additions and 2 deletions

23
modules/swayidle.nix Normal file
View file

@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
userVars,
...
}:
{
home-manager.users."${userVars.username}" = {
services.swayidle = {
enable = true;
events = {
before-sleep = "${pkgs.swaylock}/bin/swaylock -f";
lock = "${pkgs.swaylock}/bin/swaylock -f";
};
timeouts = [
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -f"; }
{ timeout = 600; command = "niri msg action power-off-monitors"; }
];
};
};
}