From eaf0c9e9559751a05000c4f21fa97a66ef13a244 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 3 Jan 2019 10:04:35 +0100 Subject: [PATCH] configuration serveur Factorio --- systems/LoutreOS/hardware-configuration.nix | 5 +++++ systems/LoutreOS/services.nix | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/systems/LoutreOS/hardware-configuration.nix b/systems/LoutreOS/hardware-configuration.nix index a093111e8..e72ceb1d5 100644 --- a/systems/LoutreOS/hardware-configuration.nix +++ b/systems/LoutreOS/hardware-configuration.nix @@ -117,6 +117,11 @@ fsType = "zfs"; }; + fileSystems."/var/lib/factorio" = + { device = "loutrepool/var/factorio"; + fsType = "zfs"; + }; + fileSystems."/var/dkim" = { device = "loutrepool/var/dkim"; fsType = "zfs"; diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index f246a1e9b..0539a3007 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -21,6 +21,7 @@ in ../../services/python-ci.nix ../../services/sdtdserver.nix ../../containers/vsftpd.nix + /mnt/secrets/factorio_secrets.nix ]; nixpkgs.overlays = [ @@ -363,6 +364,14 @@ in python-ci.enable = true; sdtdserver.enable = true; + + factorio = { + enable = true; + autosave-interval = 10; + game-name = "Shame"; + public = true; + username = "nyanloutre"; + }; }; /*