diff options
Diffstat (limited to 'hosts/vps')
-rw-r--r-- | hosts/vps/default.nix | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/hosts/vps/default.nix b/hosts/vps/default.nix index ba0fdb9..cfa50c7 100644 --- a/hosts/vps/default.nix +++ b/hosts/vps/default.nix @@ -32,12 +32,15 @@ systemd.network.networks."10-ens3" = { matchConfig.Name = "ens3"; networkConfig.DHCP = "yes"; - dns = ["127.0.0.1" "::1"]; dhcpV4Config = { UseDNS = false; }; + dhcpV6Config = { + UseDNS = false; + }; ipv6AcceptRAConfig = { UseDNS = false; + DHCPv6Client = false; }; }; @@ -48,6 +51,11 @@ user = "terraria"; group = "terraria"; } + { + directory = "/var/lib/private/${config.services.factorio.stateDirName}"; + user = "root"; + group = "root"; + } ]; services.terraria = { @@ -56,5 +64,11 @@ password = "???"; openFirewall = true; }; + services.factorio = { + enable = true; + openFirewall = true; + game-password = "???"; + requireUserVerification = false; + }; }; } |