diff --git a/hosts/vps1/configuration.nix b/hosts/vps1/configuration.nix index 9ba199c..41f0d8d 100644 --- a/hosts/vps1/configuration.nix +++ b/hosts/vps1/configuration.nix @@ -21,6 +21,7 @@ in ./services/authentik.nix ./services/git.nix ./services/mailserver.nix + ./services/factorio.nix ./akkotest.nix (fetchTarball { url = "https://github.com/cariandrum22/nixos-vscode-server/tarball/support-for-new-dir-structure-of-vscode-server"; sha256 = "1sp4h0nb7dh7mcm8vdflihv76yz8azf5zifkcbxhq7xz48c8k5pd"; }) @@ -160,5 +161,7 @@ in shell = pkgs.fish; }; + nixpkgs.config.allowUnfree = true; + system.stateVersion = "23.11"; } diff --git a/hosts/vps1/services/factorio.nix b/hosts/vps1/services/factorio.nix new file mode 100644 index 0000000..68945e1 --- /dev/null +++ b/hosts/vps1/services/factorio.nix @@ -0,0 +1,14 @@ +{ config, data, ...}: +{ + services.factorio = { + enable = true; + public = false; + game-name = "Lgm's Factorio Game"; + openFirewall = true; + autosave-interval = 5; + extraSettings = { + autosave-slots = 8; + }; + extraSettingsFile = "/var/lib/${config.services.factorio.stateDirName}/server-settings-extra.json"; + }; +} \ No newline at end of file