nixos-config/hosts/monolith/factorio-server.nix

18 lines
405 B
Nix
Raw Normal View History

2024-10-30 01:44:43 -03:00
{ config, pkgs, ... }:
{
services.factorio = {
enable = true;
2024-10-31 19:59:35 -03:00
package = pkgs.factorio-headless; # I override this in ./pkgs
2024-10-30 01:44:43 -03:00
public = true;
lan = true;
openFirewall = true;
admins = [ "lelgenio" ];
2024-10-30 20:51:43 -03:00
extraSettingsFile = config.age.secrets.factorio-settings.path;
2024-10-30 01:44:43 -03:00
};
2024-10-30 20:51:43 -03:00
age.secrets.factorio-settings = {
file = ../../secrets/factorio-settings.age;
2024-10-30 01:44:43 -03:00
mode = "777";
};
}