nixos/inspircd: sync with upstream systemd.service file

We could in theory just re-use the upstream one, but it sets User=root
which I'm not entirely comfortable with. Instead, add the settings we
were missing from that file here. Sadly, upstream doesn't configure a
syscall filter or similar.

+9 -1
+9 -1
nixos/modules/services/networking/inspircd.nix
··· 53 53 config = lib.mkIf cfg.enable { 54 54 systemd.services.inspircd = { 55 55 description = "InspIRCd - the stable, high-performance and modular Internet Relay Chat Daemon"; 56 + unitConfig.Documentation = "https://docs.inspircd.org"; 56 57 wantedBy = [ "multi-user.target" ]; 57 - requires = [ "network.target" ]; 58 + 59 + after = [ 60 + "network.target" 61 + "network-online.target" 62 + ]; 63 + wants = [ "network-online.target" ]; 58 64 59 65 serviceConfig = { 60 66 Type = "simple"; 61 67 ExecStart = '' 62 68 ${lib.getBin cfg.package}/bin/inspircd --config ${configFile} --nofork --nopid 63 69 ''; 70 + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; 71 + Restart = "on-failure"; 64 72 DynamicUser = true; 65 73 }; 66 74 };