diff --git a/README.md b/README.md index 7ef4ca8..a4d913d 100644 --- a/README.md +++ b/README.md @@ -84,13 +84,15 @@ Each host contains a `configuration.nix` for system-level configuration, a `home ## Installation +1. Clone the repo + ```sh git clone https://github.com/anotherhadi/nixy ~/.config/nixos ``` -- Copy the `hosts/laptop` folder, rename it to your system name, and change the variables inside the `variables.nix` file -- Add your `hardware-configuration.nix` to your new host's folder -- Add your 'nixosConfigurations' inside `flake.nix` +2. Copy the `hosts/laptop` folder, rename it to your system name, and change the variables inside the `variables.nix` file +3. Add your `hardware-configuration.nix` to your new host's folder +4. Add your 'nixosConfigurations' inside `flake.nix` > [!INFO] > I added few `# CHANGEME` comments in the files to help you find what to change. Be sure to check them up @@ -98,6 +100,8 @@ git clone https://github.com/anotherhadi/nixy ~/.config/nixos > [!NOTE] > When you add new files, don't forget to run `git add .` to add them to the git repository +5. Build the system + ```sh sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname ``` diff --git a/docs/src/README_template.md b/docs/src/README_template.md index 9e3ed99..bdbdc6c 100644 --- a/docs/src/README_template.md +++ b/docs/src/README_template.md @@ -74,13 +74,15 @@ Each host contains a `configuration.nix` for system-level configuration, a `home ## Installation +1. Clone the repo + ```sh git clone https://github.com/anotherhadi/nixy ~/.config/nixos ``` -- Copy the `hosts/laptop` folder, rename it to your system name, and change the variables inside the `variables.nix` file -- Add your `hardware-configuration.nix` to your new host's folder -- Add your 'nixosConfigurations' inside `flake.nix` +2. Copy the `hosts/laptop` folder, rename it to your system name, and change the variables inside the `variables.nix` file +3. Add your `hardware-configuration.nix` to your new host's folder +4. Add your 'nixosConfigurations' inside `flake.nix` > [!INFO] > I added few `# CHANGEME` comments in the files to help you find what to change. Be sure to check them up @@ -88,6 +90,8 @@ git clone https://github.com/anotherhadi/nixy ~/.config/nixos > [!NOTE] > When you add new files, don't forget to run `git add .` to add them to the git repository +5. Build the system + ```sh sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname ```