summaryrefslogtreecommitdiff
path: root/ymir/factorio.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ymir/factorio.nix')
-rw-r--r--ymir/factorio.nix88
1 files changed, 0 insertions, 88 deletions
diff --git a/ymir/factorio.nix b/ymir/factorio.nix
deleted file mode 100644
index 15969d9a..00000000
--- a/ymir/factorio.nix
+++ /dev/null
@@ -1,88 +0,0 @@
1{ config, pkgs, ... }:
2
3let
4 modDrv = pkgs.factorio-utils.modDrv {
5 allRecommendedMods = true;
6 allOptionalMods = false;
7 };
8 modPortalDrv = { name, version, sha256, deps ? [], optionalDeps ? [], recommendedDeps ? [] }: modDrv {
9 # src = pkgs.factorio-fetch {
10 # name = ''${name}_${version}.zip'';
11 # url = ''https://mods.factorio.com/api/downloads/data/mods/${id}_${version}.zip'';
12 # inherit sha256;
13 # loginUrl = "";
14 # };
15 name = ''${name}-${version}'';
16 src = pkgs.fetchurl {
17 url = ''https://f.141.li/${name}_${version}.zip'';
18 inherit sha256;
19 };
20 inherit deps optionalDeps recommendedDeps;
21 };
22
23 availableMods = rec {
24 autofill = modPortalDrv {
25 name = "autofill";
26 version = "1.4.5";
27 sha256 = "1nmn12d7fpi6gk5i6dvzqnca1hs9icqssgvjc2qdi9hz2n07h265";
28 };
29 EvoGUI = modPortalDrv {
30 name = "EvoGUI";
31 version = "0.4.108";
32 sha256 = "1z7cx8a4ybilccvxsmd85i7q2fy95as1mjs7gvbmnllp0r6p73pj";
33 };
34 factorio-reach = modPortalDrv {
35 name = "factorio-reach";
36 version = "2.1.1";
37 sha256 = "1ll77ns2bvzsvypd27y545inb5489lsk2is4wv01q4i8zbvbviac";
38 };
39 FAIR = modPortalDrv {
40 name = "FAIR";
41 version = "0.0.1";
42 sha256 = "0cwgidy3ycp90jy9qrll2gyvkmdxys5v8w6qrciifh3h77dx5ryg";
43 };
44 EvenMoreLight = modPortalDrv {
45 name = "EvenMoreLight";
46 version = "0.0.3";
47 sha256 = "06j891nbcl07di2rs0zh87hczp2p1mbpai14w52myxag0ysy4zya";
48 };
49 RailTanker = modPortalDrv {
50 name = "RailTanker";
51 version = "1.4.0";
52 sha256 = "1y9p6qiwrypyqk58rr3ahq11ikyk752fbap3n15mdplkc9i4gpfr";
53 };
54 rso-mod = modPortalDrv {
55 name = "rso-mod";
56 version = "2.2.2";
57 sha256 = "0d46vz204bv220ifjaa8qcvnbzkalrqgppmzwk43kvy1jyp9xil4";
58 };
59 YARM = modPortalDrv {
60 name = "YARM";
61 version = "0.7.106";
62 sha256 = "1qy7bylp79jfs9s81sc4g9qqwby2hsy3hcjz80cfha1sz0c048i7";
63 };
64 };
65in {
66 services.factorio = {
67 enable = true;
68 saveName = config.networking.hostName;
69 mods = with availableMods; [
70 autofill
71 EvoGUI
72 factorio-reach
73 FAIR
74 EvenMoreLight
75 RailTanker
76 rso-mod
77 YARM
78 ];
79 autosave-interval = 10;
80 };
81
82 nixpkgs.config.allowUnfree = true;
83
84 nixpkgs.config.packageOverrides = pkgs: {
85 factorio-mkModDirDrv = pkgs.factorio-utils.mkModDirDrv;
86 factorio-headless = pkgs.callPackage ../customized/factorio.nix { releaseType = "headless"; };
87 };
88}