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
533 B
Nix
18 lines
533 B
Nix
{ pkgs, ... }:
|
|
{
|
|
Unit = {
|
|
Description = "set color temperature of display according to time of day";
|
|
Documentation = [ "man:gammastep(1)" ];
|
|
BindsTo = [ "sway-session.target" ];
|
|
After = [ "sway-session.target" ];
|
|
# ConditionEnvironment requires systemd v247 to work correctly
|
|
ConditionEnvironment = [ "WAYLAND_DISPLAY" ];
|
|
};
|
|
Service = {
|
|
Type = "simple";
|
|
ExecStart = "${pkgs.gammastep}/bin/gammastep -l geoclue2 -m wayland -v";
|
|
};
|
|
Install = {
|
|
WantedBy = [ "sway-session.target" ];
|
|
};
|
|
}
|