wow
This commit is contained in:
parent
1995ae5855
commit
863abf5a10
2 changed files with 30 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ nixpkgs.lib.nixosSystem {
|
||||||
./services/forgejo-runner.nix
|
./services/forgejo-runner.nix
|
||||||
./services/limbo.nix
|
./services/limbo.nix
|
||||||
./services/stream.nix
|
./services/stream.nix
|
||||||
|
./services/velocity.nix
|
||||||
# ./services/harmonia.nix
|
# ./services/harmonia.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
|
||||||
29
hosts/server/natsu/services/velocity.nix
Normal file
29
hosts/server/natsu/services/velocity.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
systemd.services.velocity = {
|
||||||
|
description = "Minecraft Velocity Proxy";
|
||||||
|
after = [
|
||||||
|
"network-online.target"
|
||||||
|
"limbo.service"
|
||||||
|
];
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
|
requires = [ "limbo.service" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
User = "imnyang";
|
||||||
|
Group = "users";
|
||||||
|
WorkingDirectory = "/home/imnyang/minecraft/proxy";
|
||||||
|
ExecStart = "${pkgs.corretto25}/bin/java -jar /home/imnyang/minecraft/proxy/velocity.jar";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 5;
|
||||||
|
SuccessExitStatus = [ 0 143 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
25565
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue