terraria
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
./opensnitch.nix
|
||||
./adguard.nix
|
||||
./dnsmasq.nix
|
||||
./games
|
||||
./gitolite.nix
|
||||
./ente.nix
|
||||
./kubernetes.nix
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
|
||||
./terraria.nix
|
||||
];
|
||||
}
|
||||
|
||||
22
modules/services/games/terraria.nix
Normal file
22
modules/services/games/terraria.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
cfg = config.custom.services.terraria;
|
||||
in
|
||||
{
|
||||
options.custom.services.terraria = {
|
||||
enable = lib.mkEnableOption "Enables terraria server";
|
||||
path = lib.mkOption {
|
||||
type = with lib.types; string;
|
||||
default = "/data/servers/terraria";
|
||||
description = "Base path for terraria server";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.terraria = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
password = "seas";
|
||||
dataDir = cfg.path;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user