talos: home: setup idling

This commit is contained in:
Antoine Martin 2025-02-17 14:15:27 +01:00
parent 35aad1c28e
commit d8de5ac7d3
2 changed files with 15 additions and 1 deletions

View file

@ -47,7 +47,7 @@ in {
};
};
logind.lidSwitch = "ignore";
logind.lidSwitch = "suspend";
printing = {
enable = true;

View file

@ -101,6 +101,7 @@ in {
startup = [
{command = "shikane";}
{command = "waybar";}
{command = "swayidle -w idlehint 1 before-sleep \"${lock}\"";}
];
};
};
@ -112,4 +113,17 @@ in {
};
};
};
# FIXME: belongs elsewhere
services = {
logind = {
lidSwitch = "suspend";
lidSwitchExternalPower = "ignore";
extraConfig = ''
IdleAction=suspend
IdleActionSec=10min
'';
};
upower.enable = true;
};
}