1 { config, lib, pkgs, ... }:
6 cfg = config.services.robustirc-bridge;
10 services.robustirc-bridge = {
11 enable = mkEnableOption "RobustIRC bridge";
13 extraFlags = mkOption {
14 type = types.listOf types.str;
16 description = ''Extra flags passed to the {command}`robustirc-bridge` command. See [RobustIRC Documentation](https://robustirc.net/docs/adminguide.html#_bridge) or robustirc-bridge(1) for details.'';
18 "-network robustirc.net"
24 config = mkIf cfg.enable {
25 systemd.services.robustirc-bridge = {
26 description = "RobustIRC bridge";
28 "man:robustirc-bridge(1)"
29 "https://robustirc.net/"
31 wantedBy = [ "multi-user.target" ];
32 after = [ "network.target" ];
36 ExecStart = "${pkgs.robustirc-bridge}/bin/robustirc-bridge ${concatStringsSep " " cfg.extraFlags}";
37 Restart = "on-failure";
40 PrivateDevices = true;