UE5 w/ proton flake
- Shell 67.1%
- Nix 32.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| scripts | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
ue5-flake
Unreal Engine 5.7 (Windows build, under Proton) on NixOS, for making nanos world assets.
Install
nix profile install git+https://forge.superkooka.com/Superkooka/ue5-flake
Or as a flake input of your system configuration (NixOS has the same module under
nixosModules.default):
# flake.nix
inputs.ue5-flake.url = "git+https://forge.superkooka.com/Superkooka/ue5-flake";
# home.nix
imports = [ inputs.ue5-flake.homeManagerModules.default ];
programs.ue5-proton.enable = true;
programs.ue5-proton.adkVersion = "0.0.3"; # optional: ADK release used by nanos-adk new
First run
ue-proton setup # create the Proton prefix and install the Epic Games Launcher
ue-proton launcher # log in, then install UE 5.7 from the Unreal Engine tab
ue-proton prereqs # VC++ runtimes
nanos world assets
nanos-adk new ~/my-assets # new project from the nanos world ADK
cd ~/my-assets
nanos-adk open # open it in the editor
Headless (Python scripts, commandlets)
ue-proton editor-cmd ~/my-assets/NanosWorldADK.uproject \
-run=pythonscript -script=$HOME/my-assets/import.py -unattended -nullrhi
Good to know
- Any project opens with
ue-proton editor /abs/path/to/X.uproject. /tmpisn't shared with the editor: keep the files you pass to it elsewhere, for example in the project.- If rendering misbehaves, try
UE_PROTON_RHI=vulkan(ordx11,dx12). ue-protonuses Steam's Proton 11.0 if installed, GE-Proton otherwise;PROTONPATHoverrides.- Another ADK archive:
nanos-adk new <dir> --zip assets-development-kit-X.Y.Z.zip.