Skip to content

ardishko/PixelLegacyNixOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 

Repository files navigation

Pixel Legacy on NixOS

This repository documents how to configure NixOS to connect to Pixel Legacy fan servers for Pixel Worlds.

Pixel Legacy is a community-run continuation of Pixel Worlds, hosted on custom servers. Connecting requires two changes to your system:

  1. Redirecting specific game domains to the Pixel Legacy server IP.
  2. Trusting the Pixel Legacy Root CA certificate so the game accepts the serverโ€™s HTTPS/TLS connections.

This README walks you through doing this the NixOS way โ€” fully declarative, reproducible, and without running imperative scripts.

โš  Disclaimer

Pixel Legacy is not affiliated with the original Pixel Worlds developers or publishers.

๐Ÿ“‹ Prerequisites

  • A working NixOS installation
  • Basic familiarity with editing configuration.nix and rebuilding your system
  • The Pixel Legacy Root CA certificate file (rootCA.crt) from the Pixel Legacy setup files

๐Ÿ›  Setup

1. Get the Pixel Legacy Root CA certificate

Download the certificate file (rootCA.crt) from the official Pixel Legacy Discord or website and place it in the same directory as your configuration.nix.

Link: https://mega.nz/file/LEtFWI7L#pxUMkC5mibkPjcP6vR6OxPbx0N2ESclnwEh10uHUoGQ

(rootCA.crt is inside "Pixel Legacy Automated For PC" -> "Install Pixel Legacy (Steam)" -> "Step 2" in the archive.)

2. Edit your NixOS configuration

Open /etc/nixos/configuration.nix (or the relevant module if using flakes) and add:

{
  networking.hosts = {
    "74.208.102.182" = [
      "lambda.us-east-1.amazonaws.com"
      "ec2-34-237-73-93.compute-1.amazonaws.com"
      "cognito-identity.us-east-1.amazonaws.com"
      "prod.gamev92.portalworldsgame.com"
    ];
  };

  security.pki.certificateFiles = [
    # rootCA.crt must be in the same folder as the configuration file containing these lines if you wish to copy and paste the configurations as is.
    ./rootCA.crt
  ];
  # Optional, most likely doesn't do anything except for creating an environment variable.
  environment.variables.PW_APPID = "636040";
}

TODO

  • Putting this in a flake and writing an option to make it easy for others to use

About

Run Pixel Legacy on NixOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published