Hibernation is now a core option: ``` pub-solar.core.hibernation.enable = true; ``` And there's a paranoia mode, that keeps the disk encrypted as much as possible by enabling hibernation and removing the options for sleep, screen locking. Idle locking now hibernates, and it does it on very short notice.
18 lines
553 B
Nix
18 lines
553 B
Nix
{ pkgs, ... }:
|
|
{
|
|
Unit = {
|
|
Description = "sway - SirCmpwn's Wayland window manager";
|
|
Documentation = [ "man:sway(5)" ];
|
|
BindsTo = [ "graphical-session.target" ];
|
|
Wants = [ "graphical-session-pre.target" ];
|
|
After = [ "graphical-session-pre.target" ];
|
|
};
|
|
Service = {
|
|
Type = "simple";
|
|
ExecStart = "${pkgs.sway}/bin/sway";
|
|
Restart = "on-failure";
|
|
RestartSec = "1";
|
|
TimeoutStopSec = "10";
|
|
ExecStopPost = "${pkgs.systemd}/bin/systemctl --user unset-environment SWAYSOCK DISPLAY I3SOCK WAYLAND_DISPLAY";
|
|
};
|
|
}
|