From 4e5597d9d026174d465ee6c884bb75c750bea671 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 23 Jan 2022 18:31:43 +0100 Subject: ... --- hosts/vidhar/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hosts/vidhar/default.nix') diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 706b032a..9265af6a 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -157,10 +157,7 @@ sopsFile = ./selfsigned.key; }; systemd.services.nginx = { - preStart = lib.mkForce '' - echo $CREDENTIALS_DIRECTORY - ${pkgs.coreutils}/bin/ls -lhaF $CREDENTIALS_DIRECTORY - ''; + preStart = lib.mkForce config.services.nginx.preStart; serviceConfig = { LoadCredential = [ "selfsigned.key:${config.sops.secrets."selfsigned.key".path}" ]; }; -- cgit v1.2.3