From f2d6b2e1d3c5a5e416cd1ee1815ea90aedfd0c42 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sun, 5 Mar 2023 19:32:22 +0000 Subject: [PATCH] installation.md: add Nix installation instructions (#2126) --- .../getting-started/installation.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/content/documentation/getting-started/installation.md b/docs/content/documentation/getting-started/installation.md index c81439a1..11e481ab 100644 --- a/docs/content/documentation/getting-started/installation.md +++ b/docs/content/documentation/getting-started/installation.md @@ -116,6 +116,24 @@ To avoid having to type this every time, an alias can be created in `~/.bashrc`: $ alias zola="flatpak run org.getzola.zola" ``` +### NixOS / Nixpkgs + +Zola is [available](https://search.nixos.org/packages?show=zola&query=zola) +in the nixpkgs repository. If you're using NixOS, you can install Zola +by adding the following to `/etc/nixos/configuration.nix`: + +``` +environment.systemPackages = [ + pkgs.zola +]; +``` + +If you're using Nix as a package manager in another OS, you can install it using: + +``` +nix-env -iA nixpkgs.zola +``` + ### Via Github Actions Zola can be installed in a GHA workflow with [taiki-e/install-action](https://github.com/taiki-e/install-action).