summary refs log tree commit diff
path: root/nixos/modules/services/games
diff options
context:
space:
mode:
authorEric Litak <elitak@gmail.com>2016-04-27 03:32:35 -0700
committerJoachim Fasting <joachifm@fastmail.fm>2016-05-05 20:11:52 +0200
commit3531c42e5d5a7e450ea82e368332c8899190a5ed (patch)
tree47da6efba26c8e179e74162e03e5a0a5281fd3bb /nixos/modules/services/games
parentf6b645206f041cb997bc7aac2e2783bbc32efb8b (diff)
downloadnixlib-3531c42e5d5a7e450ea82e368332c8899190a5ed.tar
nixlib-3531c42e5d5a7e450ea82e368332c8899190a5ed.tar.gz
nixlib-3531c42e5d5a7e450ea82e368332c8899190a5ed.tar.bz2
nixlib-3531c42e5d5a7e450ea82e368332c8899190a5ed.tar.lz
nixlib-3531c42e5d5a7e450ea82e368332c8899190a5ed.tar.xz
nixlib-3531c42e5d5a7e450ea82e368332c8899190a5ed.tar.zst
nixlib-3531c42e5d5a7e450ea82e368332c8899190a5ed.zip
factorio: module fixes
Diffstat (limited to 'nixos/modules/services/games')
-rw-r--r--nixos/modules/services/games/factorio.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/services/games/factorio.nix b/nixos/modules/services/games/factorio.nix
index fff0d091c7a8..10f3daea69e4 100644
--- a/nixos/modules/services/games/factorio.nix
+++ b/nixos/modules/services/games/factorio.nix
@@ -75,9 +75,10 @@ in
       after         = [ "network.target" ];
 
       preStart = ''
-          test -e ${stateDir}/saves/${cfg.saveName}.zip || ${pkgs.factorio-headless}/bin/factorio \
-            --config=${cfg.configFile} \
-            --create=${cfg.saveName}
+          test -e ${stateDir}/saves/${cfg.saveName}.zip || \
+            ${pkgs.factorio-headless}/bin/factorio         \
+              --config=${cfg.configFile}                   \
+              --create=${cfg.saveName}
       '';
 
       serviceConfig = {