From 63c11851161e04825ed5b1268781d78a143a807d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 13 Sep 2016 03:39:02 +0200 Subject: Factorio on ymir --- ymir/factorio.nix | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 ymir/factorio.nix (limited to 'ymir') diff --git a/ymir/factorio.nix b/ymir/factorio.nix new file mode 100644 index 00000000..1931f086 --- /dev/null +++ b/ymir/factorio.nix @@ -0,0 +1,82 @@ +{ config, pkgs, ... }: + +let + modDrv = pkgs.factorio-utils.modDrv { + allRecommendedMods = true; + allOptionalMods = false; + }; + modPortalDrv = { id, name, version, sha256, deps ? [], optionalDeps ? [], recommendedDeps ? [] }: modDrv { + src = fetchurl { + url = ''https://mods.factorio.com/api/downloads/data/mods/${id}_${version}.zip''; + inherit sha256; + }; + inherit deps optionalDeps recommendedDeps; + }; + + mods = rec { + autofill = modPortalDrv { + id = 354; + name = "autofill"; + version = "1.4.5"; + sha256 = null; + }; + EvoGUI = modPortalDrv { + id = 160; + name = "EvoGUI"; + version = "0.4.108"; + sha256 = null; + }; + factorio-reach = modPortalDrv { + id = 100; + name = "factorio-reach"; + version = "2.1.1"; + sha256 = null; + }; + FAIR = modPortalDrv { + id = 400; + name = "FAIR"; + version = "0.0.1"; + sha256 = null; + }; + EvenMoreLight = modPortalDrv { + id = 551; + name = "EvenMoreLight"; + version = "0.0.3"; + sha256 = null; + }; + RailTanker = modPortalDrv { + id = 45; + name = "RailTanker"; + version = "1.4.0"; + sha256 = null; + }; + rso-mod = modPortalDrv { + id = 34; + name = "rso-mod"; + version = "2.2.2"; + sha256 = null; + }; + YARM = modPortalDrv { + id = 187; + name = "YARM"; + version = "0.7.106"; + sha256 = null; + }; + }; +in { + services.factorio = { + enable = true; + saveName = config.network.hostname; + mods = [ + autofill + EvoGUI + factorio-reach + FAIR + EvenMoreLight + RailTanker + rso-mod + YARM + ]; + autosave-interval = 10; + }; +} -- cgit v1.2.3