terraria
This commit is contained in:
@@ -56,7 +56,7 @@ in {
|
||||
|
||||
touchpad = { natural_scroll = true; };
|
||||
|
||||
sensitivity = if osConfig.networking.hostName == "kop-pc" then -0.1 else 0; # -1.0 - 1.0, 0 means no modification.
|
||||
sensitivity = if osConfig.networking.hostName == "kop-pc" then -0.3 else 0; # -1.0 - 1.0, 0 means no modification.
|
||||
};
|
||||
|
||||
general = {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -90,6 +90,7 @@
|
||||
enable = true;
|
||||
basePath = "/data/synced";
|
||||
};
|
||||
terraria.enable = true;
|
||||
};
|
||||
nftables.enable = true;
|
||||
cli-tools.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user