talos: home: setup idling
This commit is contained in:
parent
35aad1c28e
commit
d8de5ac7d3
2 changed files with 15 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue