From 12707af8618bfdb0218b62645eea9222651e8592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 24 Jan 2023 10:43:47 +0100 Subject: [PATCH] fix changeAction==none case --- nix/modules/vault-secrets.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/modules/vault-secrets.nix b/nix/modules/vault-secrets.nix index e4809f9..7a30ec7 100644 --- a/nix/modules/vault-secrets.nix +++ b/nix/modules/vault-secrets.nix @@ -35,7 +35,7 @@ let destination = "/run/systemd-vaultd/secrets/${serviceName}.service.json"; perms = "0400"; } - // lib.optionalAttrs (vaultConfig.changeAction != null) { + // lib.optionalAttrs (vaultConfig.changeAction != null && vaultConfig.changeAction != "none") { command = "systemctl ${ if vaultConfig.changeAction == "restart" then "try-restart"