This repository has been archived on 2025-05-19. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2025-03-20 10:44:29 +01:00
pkgs/godot fix versions in packages 2025-03-19 13:20:24 +01:00
default.nix fix refs 2025-03-19 11:51:57 +01:00
flake.lock fix refs 2025-03-19 11:51:57 +01:00
flake.nix fix refs 2025-03-19 11:51:57 +01:00
LICENSE fix refs 2025-03-19 11:51:57 +01:00
overlay.nix fix refs 2025-03-19 11:51:57 +01:00
README.md fix 2025-03-20 10:44:29 +01:00
shell.nix fix refs 2025-03-19 11:51:57 +01:00

NixOS Godot Binaries

Official Godot binary packages for NixOS (including godot-mono for C# support!) Forked from https://github.com/ionthedev/nixos-godot-bin-4.4 Headless version don't work, package it yourself lol

Getting Started

With Flakes ❄

Running Godot without installing it

To run Godot without any further configuration, run this command:

nix run git+https://git.foglar.tech/foglar/godot-4.4.1

Running different Godot flavors

There are also these other options available to run Godot:

nix run git+https://git.foglar.tech/foglar/godot-4.4.1\#godot
nix run git+https://git.foglar.tech/foglar/godot-4.4.1\#godotHeadless
nix run git+https://git.foglar.tech/foglar/godot-4.4.1\#godotMono

Most importantly, using \#godotMono will allow you to write in C#.

Installing Godot using flakes system-wide

Put this in your flake.nix, to install Godot for your user:

  inputs = {
    # ...
    godot.url = "git+https://git.foglar.tech/foglar/godot-4.4.1";
    # ...
  };

  outputs = { self, nixpkgs, ... }@attrs:
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      modules = [
        ({ config, nixpkgs, ...}@inputs:
          users.users.YOURUSERNAME.packages = [
            # ...
            inputs.godot.packages.x86_64-linux.godot # for godot without Mono / C#
            inputs.godot.packages.x86_64-linux.godotHeadless # for godot headless
            inputs.godot.packages.x86_64-linux.godotMono
          ]
        )
      ]

Alternatively you can also install Godot system-wide like this:

  inputs = {
    # ...
    godot.url = "git+https://git.foglar.tech/foglar/godot-4.4.1";
    # ...
  };

  outputs = { self, nixpkgs, ... }@attrs:
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      modules = [
        ({ config, nixpkgs, ...}@inputs:
          environment.systemPackages = [
            # ...
            inputs.godot.packages.x86_64-linux.godot # for godot without Mono / C#
            inputs.godot.packages.x86_64-linux.godotHeadless # for godot headless
            inputs.godot.packages.x86_64-linux.godotMono
          ]
        )
      ]