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://# +``` + +