Installing Kinto on NixOS
Kinto is a flexible JSON document store service that is basically written in Python. NixOS is an operating system geared towards declarative and reproducible deployments. Together, they make a great combination. In this tutorial, we’ll walk you through the process of installing Kinto on NixOS.
Pre-requisites
- A running instance of NixOS Latest
- Basic knowledge of the command line interface
- An internet connection to install required packages
Steps to install Kinto on NixOS
- First, update your Nix package manager.
$ sudo nix-channel --update
- You need to create a NixOS module for installing Kinto. You can use the following code in
/etc/nixos/configuration.nix.
environment.systemPackages = with pkgs; [
# …
kinto
];
- Now, restart your NixOS instance to activate the changes.
$ sudo systemctl restart nixos-rebuild
- Once the instance is up, you should be able to use Kinto to store your JSON documents.
$ kinto --ini /etc/kinto.ini migrate --backend=postgresql
- That’s it! You can now start using Kinto to store your JSON data.
Conclusion
In this tutorial, we showed you how to install Kinto on NixOS Latest. With this setup, you can use Kinto to store and retrieve your JSON documents with ease.