task | add support for systemd-lock-handler
This commit is contained in:
parent
ec04e078e6
commit
69d1bd15f3
2 changed files with 21 additions and 4 deletions
|
|
@ -63,6 +63,7 @@ in {
|
|||
signal-desktop
|
||||
simple-scan
|
||||
syncthingtray
|
||||
systemd-lock-handler
|
||||
telegram-desktop
|
||||
texlive.combined.scheme-medium
|
||||
watchmate
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ let
|
|||
in {
|
||||
systemd = {
|
||||
services = {
|
||||
systemd-lock-handler = { enable = true; };
|
||||
NetworkManager-wait-online.enable = lib.mkForce false;
|
||||
systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||
clean-keychain = {
|
||||
|
|
@ -18,6 +19,21 @@ in {
|
|||
};
|
||||
user = {
|
||||
services = {
|
||||
swaylock = {
|
||||
description = "Screen locker for Wayland";
|
||||
documentation = ["man:swaylock(1)"];
|
||||
onSuccess = ["unlock.target"];
|
||||
partOf = ["lock.target"];
|
||||
before = ["lock.target"];
|
||||
wantedBy = ["lock.target"];
|
||||
serviceConfig = {
|
||||
Type = "forking";
|
||||
Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
|
||||
ExecStart = "/home/don/bin/lock.sh -m";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 0;
|
||||
};
|
||||
};
|
||||
detect-reboot-for-upgrade = {
|
||||
script = ''
|
||||
set -eu -o pipefail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue