anchor.diff:          type        = types.bool;
           default     = false;
           description = ''
  -          If enabled, starts a Terraria server. The server can be connected to via <literal>tmux -S /var/lib/terraria/terraria.sock attach</literal>
  +          If enabled, starts a Terraria server. The server can be connected to via <literal>tmux -S ${cfg.dataDir}/terraria.sock attach</literal>
             for administration by users who are a part of the <literal>terraria</literal> group (use <literal>C-b d</literal> shortcut to detach again).
           '';
         };
  
positive.code:         default     = false;
          description = "Disables automatic Universal Plug and Play.";
        };
      };
    };
  
    config = mkIf cfg.enable {
      users.users.terraria = {
        description = "Terraria server service user";
        home        = "/var/lib/terraria";
        createHome  = true;
        uid         = config.ids.uids.terraria;
      };
  
negative.code:         User    = "terraria";
          Type = "forking";
          GuessMainPID = true;
          ExecStart = "${getBin pkgs.tmux}/bin/tmux -S ${cfg.dataDir}/terraria.sock new -d ${pkgs.terraria-server}/bin/TerrariaServer ${concatStringsSep " " flags}";
          ExecStop = "${stopScript} $MAINPID";
        };
  
        postStart = ''
          ${pkgs.coreutils}/bin/chmod 660 ${cfg.dataDir}/terraria.sock
          ${pkgs.coreutils}/bin/chgrp terraria ${cfg.dataDir}/terraria.sock
        '';
      };
    };
  