Skip to content

timhae/gameservers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Add as flake input to use the modules:

{
  inputs.gameservers.url = "github:timhae/gameservers";
  outputs = { self, nixos, gameservers }: {
    nixosConfigurations.myMachine = nixos.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        gameservers.nixosModules.<gameserver>
      ];
    };
  };
}

All checks have to be ran outside of the sandbox since steamcmd requires internet access to download the game servers. Run them like this:

nix build --option sandbox false -L .#checks.x86_64-linux.<gameserver>

Checks take a long time to complete and download a lot.

Game Servers

Stardew Valley

Basic setup:

services.stardew-server = {
  enable = true;
  openFirewall = true;
};

That's it. After a rebuild you can join the game via the IP of your server. ./modules/stardew-server.nix defines all available settings.

Valheim

Basic setup:

services.valheim = {
  enable = true;
  openFirewall = true;
  passwordFile = "/etc/valheimPassword";
  modifiers = {
    deathpenalty = "casual";
    portals = "casual";
  };
};
environment.etc."valheimPassword".text = "PASSWORD=supersecret";

The systemd unit is not started automatically since the service puts some load on the host machine and thus enabling with systemctl start valheim should be an active choice. ./modules/valheim-server.nix defines all available settings.

Satisfactory

Basic setup:

services.satisfactory = {
  enable = true;
  openFirewall = true;
};

The systemd unit is not started automatically since the service puts some load on the host machine and thus enabling with systemctl start satisfactory should be an active choice. ./modules/satisfactory-server.nix defines all available settings. Make sure to claim the server through the server manager in the starting screen of the game after you start the service.

TODO

  • create checks
  • run ci
  • auto-update flake input
  • package server files with depot downloader

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages