From ef9e98ce0a6634c80e3cfd8583b27a20f5d29cdb Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sun, 14 May 2023 17:03:27 +0300 Subject: [PATCH] Write README --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2efa120..7e12ad6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,48 @@ -# My NixOS Configuration +# My NixOS Configurations +This repository contains my NixOS configurations for all my machines. +## Bootstrapping + +Here is the script you need to run to get this working: + +```sh +# Remove old configuration as it is not used. +sudo rm -rf /etc/nixos + +nix-shell -p git + +git clone https://github.com/RGBCube/NixOSConfiguration +cd NixOSConfiguration + +chmod +x rebuild.sh +./rebuild.sh --clean-garbage +``` + +`machine-name` is a machine selected from the machines in the `machines` directory. + +## Applying Changes + +Lets say you have changed the configuration and want to apply the changes +to your system. You would have to run the rebuild script: + +```sh +./rebuild.sh +``` + +This runs the script interactively. + +You can also check how the script is used: + +```sh +./rebuild.sh --help +``` + +This outputs: + +``` +Usage: ./rebuild.sh [-h | --help] [-c | --clean-garbage] [machine] +``` ## License