summaryrefslogtreecommitdiff
path: root/ymir/factorio.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ymir/factorio.nix')
-rw-r--r--ymir/factorio.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/ymir/factorio.nix b/ymir/factorio.nix
index 6c0dc246..a7bac033 100644
--- a/ymir/factorio.nix
+++ b/ymir/factorio.nix
@@ -6,10 +6,15 @@ let
6 allOptionalMods = false; 6 allOptionalMods = false;
7 }; 7 };
8 modPortalDrv = { id, name, version, sha256, deps ? [], optionalDeps ? [], recommendedDeps ? [] }: modDrv { 8 modPortalDrv = { id, name, version, sha256, deps ? [], optionalDeps ? [], recommendedDeps ? [] }: modDrv {
9 src = pkgs.factorio-fetch { 9 # src = pkgs.factorio-fetch {
10 name = ''${name}_${version}.zip''; 10 # name = ''${name}_${version}.zip'';
11 url = ''https://mods.factorio.com/api/downloads/data/mods/${id}_${version}.zip''; 11 # url = ''https://mods.factorio.com/api/downloads/data/mods/${id}_${version}.zip'';
12 inherit sha256; 12 # inherit sha256;
13 # loginUrl = "";
14 # };
15 src = pkgs.fetchurl {
16 url = ''https://f.141.li/${name}_${version}.zip'';
17 inherit name sha256;
13 }; 18 };
14 inherit deps optionalDeps recommendedDeps; 19 inherit deps optionalDeps recommendedDeps;
15 }; 20 };
@@ -65,8 +70,6 @@ let
65 }; 70 };
66 }; 71 };
67in { 72in {
68 imports = [ ../factorio-credentials.nix ];
69
70 services.factorio = { 73 services.factorio = {
71 enable = true; 74 enable = true;
72 saveName = config.networking.hostName; 75 saveName = config.networking.hostName;
@@ -87,7 +90,5 @@ in {
87 90
88 nixpkgs.config.packageOverrides = pkgs: { 91 nixpkgs.config.packageOverrides = pkgs: {
89 factorio-mkModDirDrv = pkgs.factorio-utils.mkModDirDrv; 92 factorio-mkModDirDrv = pkgs.factorio-utils.mkModDirDrv;
90 factorio = pkgs.callPackage ../customized/factorio.nix { releaseType = "alpha"; };
91 factorio-headless = pkgs.callPackage ../customized/factorio.nix { releaseType = "headless"; };
92 }; 93 };
93} 94}