diff --git a/nixos/modules/services/networking/inspircd.nix b/nixos/modules/services/networking/inspircd.nix index 315a327bc36e..dbc587e0a4f1 100644 --- a/nixos/modules/services/networking/inspircd.nix +++ b/nixos/modules/services/networking/inspircd.nix @@ -53,14 +53,22 @@ in config = lib.mkIf cfg.enable { systemd.services.inspircd = { description = "InspIRCd - the stable, high-performance and modular Internet Relay Chat Daemon"; + unitConfig.Documentation = "https://docs.inspircd.org"; wantedBy = [ "multi-user.target" ]; - requires = [ "network.target" ]; + + after = [ + "network.target" + "network-online.target" + ]; + wants = [ "network-online.target" ]; serviceConfig = { Type = "simple"; ExecStart = '' ${lib.getBin cfg.package}/bin/inspircd --config ${configFile} --nofork --nopid ''; + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + Restart = "on-failure"; DynamicUser = true; }; };