pain
This commit is contained in:
parent
5acdaed42a
commit
cb6af5e7c4
16 changed files with 288 additions and 29 deletions
33
modules/servers/per-host/overlord/pz.nix
Normal file
33
modules/servers/per-host/overlord/pz.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
steamcmd
|
||||
jdk17
|
||||
steam-run
|
||||
];
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
16261
|
||||
16262
|
||||
];
|
||||
|
||||
allowedUDPPorts = [
|
||||
16261
|
||||
16262
|
||||
];
|
||||
};
|
||||
|
||||
users.users.pzserver = {
|
||||
isSystemUser = true;
|
||||
group = "pzserver";
|
||||
home = "/srv/pzserver-home";
|
||||
createHome = true;
|
||||
};
|
||||
|
||||
users.groups.pzserver = {};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /srv/pzserver 0755 pzserver pzserver -"
|
||||
"d /srv/pzserver-home 0755 pzserver pzserver -"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue