From 824caee6eed76df3e29094e61e74b9017121bf58 Mon Sep 17 00:00:00 2001 From: Louis Gallet Date: Sun, 1 Dec 2024 22:07:08 +0100 Subject: [PATCH] docs: :pencil: Update documentation with install instructions --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index a5e8870..1d2650e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,24 @@ # Nix configuration This is my personal Nix configuration. It is a work in progress and is subject to change. + +# How to install +1. Install nix +```bash +sh <(curl -L https://nixos.org/nix/install) +``` + +2. Clone this repository +```bash +git clone https://gitea.louisgallet.fr/lgallet/nix-config.git ~/.config/nix +``` + +3. Install the configuration +```bash +darwin-rebuild switch --flake ~/.config/nix#MBP-Louis +``` + +# How to update +```bash +git pull +darwin-rebuild switch --flake ~/.config/nix#MBP-Louis +``` \ No newline at end of file