nsd: ConditionPathExists all files
This commit is contained in:
parent
125ebdac56
commit
9a7e42b95d
@ -188,7 +188,12 @@
|
||||
systemd.services.nsd-control-setup = {
|
||||
requiredBy = ["nsd.service"];
|
||||
before = ["nsd.service"];
|
||||
unitConfig.ConditionPathExists = "!/etc/nsd/nsd_control.pem";
|
||||
unitConfig.ConditionPathExists = [
|
||||
"!/etc/nsd/nsd_control.key"
|
||||
"!/etc/nsd/nsd_control.pem"
|
||||
"!/etc/nsd/nsd_server.key"
|
||||
"!/etc/nsd/nsd_server.pem"
|
||||
];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
UMask = 0077;
|
||||
|
@ -36,7 +36,7 @@
|
||||
systemd.services.deployerbot = {
|
||||
description = "Update all known systems";
|
||||
environment = {TZ = "UTC";};
|
||||
path = [ pkgs.git pkgs.openssh pkgs.nix ];
|
||||
path = [pkgs.git pkgs.openssh pkgs.nix];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "deployerbot-main";
|
||||
|
Loading…
Reference in New Issue
Block a user