asjon: fix nginx restart problem

This commit is contained in:
Michele Guerini Rocco 2021-09-30 08:46:28 +02:00
parent b017591305
commit 393e51eb53
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -31,7 +31,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
users.extraUsers."${cfg.user}" = { users.extraUsers.${cfg.user} = {
home = cfg.dataDir; home = cfg.dataDir;
isSystemUser = true; isSystemUser = true;
createHome = true; createHome = true;
@ -42,7 +42,7 @@ in {
systemd.services.asjon = { systemd.services.asjon = {
description = "asjon: our chat bot"; description = "asjon: our chat bot";
after = [ "nginx.service" "matrix-synapse.service" "asjon-init.service" ]; after = [ "nginx.service" "matrix-synapse.service" "asjon-init.service" ];
requires = [ "nginx.service" "matrix-synapse.service" "asjon-init.service" ]; partOf = [ "nginx.service" "matrix-synapse.service" "asjon-init.service" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
path = with pkgs; [ path = with pkgs; [