diff --git a/configurations/host/waffentrager/services/mount-acme.nix b/configurations/host/waffentrager/services/mount-acme.nix index 34161d6..ecebb40 100644 --- a/configurations/host/waffentrager/services/mount-acme.nix +++ b/configurations/host/waffentrager/services/mount-acme.nix @@ -14,6 +14,7 @@ where = "/var/lib/mnt_acme"; type = "fuse.sshfs"; options = "reconnect,gid=${builtins.toString config.ids.gids.nginx},_netdev,rw,nosuid,allow_other,default_permissions,follow_symlinks,idmap=user,compression=yes,identityfile=/materus/root/ssh_host_ed25519_key"; + wantedBy = [ "multi-user.target" ]; }]; }; } diff --git a/configurations/host/waffentrager/services/nginx.nix b/configurations/host/waffentrager/services/nginx.nix index c1a4e15..94b02f9 100644 --- a/configurations/host/waffentrager/services/nginx.nix +++ b/configurations/host/waffentrager/services/nginx.nix @@ -19,6 +19,10 @@ systemd.services.nginx = { requires = [ "var-lib-mnt_acme.mount" ]; after = [ "var-lib-mnt_acme.mount" ]; + serviceConfig = { + restart = "always"; + restartSec = 60; + }; }; };