talos: home: setup idling
This commit is contained in:
parent
35aad1c28e
commit
d8de5ac7d3
|
@ -47,7 +47,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
logind.lidSwitch = "ignore";
|
logind.lidSwitch = "suspend";
|
||||||
|
|
||||||
printing = {
|
printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -101,6 +101,7 @@ in {
|
||||||
startup = [
|
startup = [
|
||||||
{command = "shikane";}
|
{command = "shikane";}
|
||||||
{command = "waybar";}
|
{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…
Reference in a new issue