tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
vault: do not restart the service on "nixos-rebuild switch"
Volth
8 years ago
334e85e7
c3996de4
+2
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
security
vault.nix
+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
115
+
restartIfChanged = false; # do not restart on "nixos-rebuild switch". It would seal the storage and disrupt the clients.
116
116
+
115
117
preStart = optionalString (cfg.storagePath != null) ''
116
118
install -d -m0700 -o vault -g vault "${cfg.storagePath}"
117
119
'';