From f878af4b23fe0f5b8234b28dbdcf659ca6b78a63 Mon Sep 17 00:00:00 2001 From: misuzu Date: Wed, 24 Aug 2022 07:55:43 +0300 Subject: [PATCH] Add installation guide for NixOS --- docs/getting-started/installation.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 6e35b97e..f9da80d1 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -53,6 +53,24 @@ tags: # for GUI package sudo yum install netbird-ui ``` + +**NixOS 22.11+/unstable** + +1. Edit your [`configuration.nix`](https://nixos.org/manual/nixos/stable/index.html#sec-changing-config) + + ```nix + { config, pkgs, ... }: + { + services.netbird.enable = true; # for netbird service & CLI + environment.systemPackages = [ pkgs.netbird-ui ]; # for GUI + } + ``` +2. Build and apply new configuration + + ```bash + sudo nixos-rebuild switch + ``` + ### macOS **Homebrew install** 1. Download and install homebrew at https://brew.sh/