add factorio server to public-cof
This commit is contained in:
parent
06e84b79b4
commit
7dd205ad90
2 changed files with 17 additions and 0 deletions
|
@ -10,12 +10,15 @@
|
|||
./networking.nix
|
||||
./nextcloud.nix
|
||||
./minecraft.nix
|
||||
./factorio.nix
|
||||
# TODO monitoring
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"minecraft-server"
|
||||
"factorio-headless"
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
|
|
14
machines/public-cof/factorio.nix
Normal file
14
machines/public-cof/factorio.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.factorio = {
|
||||
enable = true;
|
||||
admins = [ ];
|
||||
username = "AGB";
|
||||
password = "Je vais voter pour le club réseau";
|
||||
description = "This is a test and it will break";
|
||||
game-name = "Factorio for AGB";
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 34197 ];
|
||||
}
|
Loading…
Reference in a new issue