mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-01-11 04:47:44 +01:00
vps: enable factorio
This commit is contained in:
parent
d23de1e07a
commit
3165ed8533
2 changed files with 17 additions and 0 deletions
|
@ -21,6 +21,7 @@ in
|
||||||
./services/authentik.nix
|
./services/authentik.nix
|
||||||
./services/git.nix
|
./services/git.nix
|
||||||
./services/mailserver.nix
|
./services/mailserver.nix
|
||||||
|
./services/factorio.nix
|
||||||
./akkotest.nix
|
./akkotest.nix
|
||||||
|
|
||||||
(fetchTarball { url = "https://github.com/cariandrum22/nixos-vscode-server/tarball/support-for-new-dir-structure-of-vscode-server"; sha256 = "1sp4h0nb7dh7mcm8vdflihv76yz8azf5zifkcbxhq7xz48c8k5pd"; })
|
(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;
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
14
hosts/vps1/services/factorio.nix
Normal file
14
hosts/vps1/services/factorio.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue