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