formating

This commit is contained in:
Don Harper 2025-09-02 20:51:44 -05:00
parent 138fc13f98
commit fe017602e4

View file

@ -1,5 +1,8 @@
{ pkgs, lib, ... }: {
let pkgs,
lib,
...
}: let
readlink = "${pkgs.coreutils}/bin/readlink"; readlink = "${pkgs.coreutils}/bin/readlink";
notify-send = "${pkgs.libnotify}/bin/notify-send"; notify-send = "${pkgs.libnotify}/bin/notify-send";
in { in {
@ -28,8 +31,7 @@ in {
wantedBy = ["lock.target"]; wantedBy = ["lock.target"];
serviceConfig = { serviceConfig = {
Type = "forking"; Type = "forking";
Environment = Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
ExecStart = "/home/don/bin/lock.sh -m"; ExecStart = "/home/don/bin/lock.sh -m";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 0; RestartSec = 0;
@ -53,8 +55,7 @@ in {
unitConfig = {Type = "simple";}; unitConfig = {Type = "simple";};
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
Environment = Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/don/bin:/home/don/bin";
ExecStart = "/home/don/bin/check-nic"; ExecStart = "/home/don/bin/check-nic";
}; };
}; };