formating
This commit is contained in:
parent
138fc13f98
commit
fe017602e4
1 changed files with 20 additions and 19 deletions
|
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue