Installing Immich on NixOS Latest

In this tutorial, we will guide you through the process of installing Immich on the latest version of NixOS. Immich is a command-line utility that allows you to perform image-related tasks such as resizing, cropping, flipping, and rotating images. Immich is available on GitHub, and we will install it from there.

Here are the steps you need to follow to install Immich on NixOS Latest:

Step 1: Update your system

Before installing any new packages or software, it is always recommended to update the system to the latest available packages.

To update your system, simply run the following command in your terminal:

sudo nixos-rebuild switch --upgrade

This command will update your system to the latest available packages.

Step 2: Install Immich dependencies

Immich has a few dependencies that need to be installed before we can install it. The dependencies are GraphicsMagick and NodeJS, and we will install them using the Nix package manager.

To install GraphicsMagick and NodeJS, run the following commands in your terminal:

sudo nix-env -iA nixpkgs.graphicsmagick
sudo nix-env -iA nixpkgs.nodejs

The above commands will install both dependencies on your system.

Step 3: Install Immich

Now that we have installed the dependencies, we can proceed to install Immich. To do so, we need to clone the Immich repository from GitHub.

To clone the repository, run the following command in your terminal:

git clone https://github.com/alextran1502/immich.git

Once the repository has been cloned, change into the immich directory by running the following command:

cd immich

Now that we are in the immich directory, we can install Immich by running the following command:

sudo npm install -g

This command will install Immich globally on your system.

Step 4: Test the installation

To test if Immich has been installed successfully, run the following command in your terminal:

immich --help

If everything is installed correctly, you should see the help menu for Immich printed in your terminal.

Congratulations! You have successfully installed Immich on NixOS Latest. You can now start using Immich to perform various image-related tasks.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!