vault: do not restart the service on "nixos-rebuild switch"

Volth 334e85e7 c3996de4

+2
+2
nixos/modules/services/security/vault.nix
··· 112 112 after = [ "network.target" ] 113 113 ++ optional (config.services.consul.enable && cfg.storageBackend == "consul") "consul.service"; 114 114 115 + restartIfChanged = false; # do not restart on "nixos-rebuild switch". It would seal the storage and disrupt the clients. 116 + 115 117 preStart = optionalString (cfg.storagePath != null) '' 116 118 install -d -m0700 -o vault -g vault "${cfg.storagePath}" 117 119 '';