diff options
author | Volth <volth@webmaster.ms> | 2017-07-03 19:46:02 +0000 |
---|---|---|
committer | Volth <volth@webmaster.ms> | 2017-07-03 19:46:02 +0000 |
commit | 334e85e75abdfd87dd948ac226ed6c00d1143023 (patch) | |
tree | 58a9e70f9dc05233174929b2ffe35982e2796c34 /nixos/modules/services/security/vault.nix | |
parent | c3996de4fd1014a9a0977d25e1235ea2949954d8 (diff) | |
download | nixpkgs-334e85e75abdfd87dd948ac226ed6c00d1143023.tar nixpkgs-334e85e75abdfd87dd948ac226ed6c00d1143023.tar.gz nixpkgs-334e85e75abdfd87dd948ac226ed6c00d1143023.tar.bz2 nixpkgs-334e85e75abdfd87dd948ac226ed6c00d1143023.tar.lz nixpkgs-334e85e75abdfd87dd948ac226ed6c00d1143023.tar.xz nixpkgs-334e85e75abdfd87dd948ac226ed6c00d1143023.tar.zst nixpkgs-334e85e75abdfd87dd948ac226ed6c00d1143023.zip |
vault: do not restart the service on "nixos-rebuild switch"
Diffstat (limited to 'nixos/modules/services/security/vault.nix')
-rw-r--r-- | nixos/modules/services/security/vault.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/security/vault.nix b/nixos/modules/services/security/vault.nix index 6b11248adb3..146afec344a 100644 --- a/nixos/modules/services/security/vault.nix +++ b/nixos/modules/services/security/vault.nix @@ -112,6 +112,8 @@ in after = [ "network.target" ] ++ optional (config.services.consul.enable && cfg.storageBackend == "consul") "consul.service"; + restartIfChanged = false; # do not restart on "nixos-rebuild switch". It would seal the storage and disrupt the clients. + preStart = optionalString (cfg.storagePath != null) '' install -d -m0700 -o vault -g vault "${cfg.storagePath}" ''; |