From 866ee418a6fc73924b984a32cba9d9f05b1dc6a2 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Fri, 24 Mar 2023 22:26:00 +0100 Subject: [PATCH] Added nixos-install instructions --- NixOS-installation.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/NixOS-installation.md b/NixOS-installation.md index e955ee3..567970d 100644 --- a/NixOS-installation.md +++ b/NixOS-installation.md @@ -16,6 +16,9 @@ mount /dev/disk/by-label/NIXBOOT /mnt/boot/efi swapon /dev/disk/by-label/SWAP ``` +
+ If you do not have an existing configuration repository. + ``` git init git crypt init @@ -27,4 +30,22 @@ Add a `.gitattributes` file containing ``` secrets/** filter=git-crypt diff=git-crypt -``` \ No newline at end of file +``` + +
+
+ If you have a repository and you want to 'clone' an existing machine using flakes. + +Clone your repository and go inside the folder containing the `flake.nix` file. + +``` +nixos-install --flake .# +``` + +Alternatively, if you don't want to clone the repository first: + +``` +nixos-install --flake https://# +``` + +