-
-
Notifications
You must be signed in to change notification settings - Fork 41
Local Dev on Linux (Nix)
Naterfute edited this page Nov 23, 2024
·
2 revisions
- Nix Package Manager
- NodeJS (latest LTS version)
- Docker Engine
- Git
This guide describes local development setup using Nix instead of Vagrant. This approach offers several advantages:
- Faster boot times without VM overhead
- Lower resource consumption
- Flexible configuration through
nix/buildsteps.sh
- Improved reliability across Linux distributions
- Install Nix and enable flakes support (configuration varies by distribution)
- Clone the Pyrodactyl panel repository
- Install dependencies:
npm i
- Build the application:
npm run ship
- This caches build results and uploads sourcemaps to Sentry
- Subsequent builds are much faster if code hasn't changed
- Create environment file:
cp .env.nix .env
- Initialize development environment:
nix run
- Completely Automated
- Sets up Wings and required services
- Configures databases and application
- Takes approximately 15 minutes
- Once you see "Pyrodactyl is now up and running at localhost:8000", access the application
- Login using the credentials shown in your console
⚠️ Important: Always uselocalhost:8000
, not127.0.0.1
, to avoid CORS issues! - Visit http://localhost:8000/admin to create your first server
Currently, Pterodactyl Wings has compatibility issues with the NixOS development environment. This limitation is temporary and will be addressed in future updates.