nix-config/configs/nixos/factorio-docker.nix

27 lines
450 B
Nix
Raw Permalink Normal View History

2024-10-19 22:08:48 +02:00
{
inputs,
config,
pkgs,
lib,
...
}: {
virtualisation.oci-containers = {
backend = "docker";
containers.factorio = {
image = "factoriotools/factorio:stable";
volumes = ["/storage/factorio:/factorio"];
hostname = "factorio";
ports = [
"34197:34197"
"27015:27015"
];
2024-10-21 16:06:30 +02:00
environment = {
UPDATE_MODS_ON_START = "true";
2024-10-19 22:08:48 +02:00
};
};
};
imports = [
./docker.nix
];
}