Nix/NixOS
Install NocoDB on NixOS.
On NixOS
Basic Setup
The NixOS module is the recommended method for installing and configuring NocoDB on NixOS. We advise using Flakes for this process. The NixOS module will install NocoDB and create a corresponding systemd service
Secrets
We recommend using the services.nocodb.environmentFile
option to securely pass secrets, such as NC_AUTH_JWT_SECRET
, to the NixOS NocoDB instance. This approach prevents sensitive information from being committed to the NixOS repository. While it is not required, we strongly suggest using sops-nix for managing secrets in a more secure and structured manner.
Example configuration:
SSL
It is recommended to use the NixOS Nginx module with ACME for SSL certificate management. This approach ensures secure and automated handling of SSL certificates.
PostgreSQL
For production use recommend PostgreSQL instead of SQLite
On Other GNU/Linux Distributions and MacOS
If Nix is not already installed on your system, we recommend using the Determinate Systems Nix installer to install Nix. If Nix is already installed, you can skip this step.
To install Nix, run the following command:
Once Nix is installed, you can run NocoDB using the following command: