Update the readme

This commit is contained in:
Hadi 2024-10-08 12:34:50 +02:00
parent 8d7fbd74b5
commit d7184174cd
2 changed files with 14 additions and 6 deletions

View File

@ -84,13 +84,15 @@ Each host contains a `configuration.nix` for system-level configuration, a `home
## Installation ## Installation
1. Clone the repo
```sh ```sh
git clone https://github.com/anotherhadi/nixy ~/.config/nixos 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 2. 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 3. Add your `hardware-configuration.nix` to your new host's folder
- Add your 'nixosConfigurations' inside `flake.nix` 4. Add your 'nixosConfigurations' inside `flake.nix`
> [!INFO] > [!INFO]
> I added few `# CHANGEME` comments in the files to help you find what to change. Be sure to check them up > 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] > [!NOTE]
> When you add new files, don't forget to run `git add .` to add them to the git repository > When you add new files, don't forget to run `git add .` to add them to the git repository
5. Build the system
```sh ```sh
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
``` ```

View File

@ -74,13 +74,15 @@ Each host contains a `configuration.nix` for system-level configuration, a `home
## Installation ## Installation
1. Clone the repo
```sh ```sh
git clone https://github.com/anotherhadi/nixy ~/.config/nixos 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 2. 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 3. Add your `hardware-configuration.nix` to your new host's folder
- Add your 'nixosConfigurations' inside `flake.nix` 4. Add your 'nixosConfigurations' inside `flake.nix`
> [!INFO] > [!INFO]
> I added few `# CHANGEME` comments in the files to help you find what to change. Be sure to check them up > 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] > [!NOTE]
> When you add new files, don't forget to run `git add .` to add them to the git repository > When you add new files, don't forget to run `git add .` to add them to the git repository
5. Build the system
```sh ```sh
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
``` ```