mirror of
https://github.com/Andrey0189/nixos-config-reborn.git
synced 2025-09-15 10:06:00 +03:00
small README fixes
This commit is contained in:
47
README.md
47
README.md
@@ -27,50 +27,51 @@ To get started with this setup, follow these steps:
|
|||||||
|
|
||||||
3. **Copy one of the hosts configuration to set up your own**:
|
3. **Copy one of the hosts configuration to set up your own**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd hosts
|
cd hosts
|
||||||
cp -r slim3 <your_hostname>
|
cp -r slim3 <your_hostname>
|
||||||
cd <your_hostname>
|
cd <your_hostname>
|
||||||
```
|
```
|
||||||
|
|
||||||
4. **Put your `hardware-configuration.nix` file there**:
|
4. **Put your `hardware-configuration.nix` file there**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp /etc/nixos/hardware-configuration.nix ./
|
cp /etc/nixos/hardware-configuration.nix ./
|
||||||
```
|
```
|
||||||
|
|
||||||
5. **Edit `hosts/<your_hostname>/local-packages.nix` and `nixos/packages.nix` files if needed**:
|
5. **Edit `hosts/<your_hostname>/local-packages.nix` and `nixos/packages.nix` files if needed**:
|
||||||
```bash
|
|
||||||
|
```bash
|
||||||
vim local-packages.nix
|
vim local-packages.nix
|
||||||
vim ../../nixos/packages.nix
|
vim ../../nixos/packages.nix
|
||||||
```
|
```
|
||||||
|
|
||||||
6. **Finally, edit the `flake.nix` file**:
|
6. **Finally, edit the `flake.nix` file**:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
...
|
...
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: let
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
-- homeStateVersion = "24.11";
|
-- homeStateVersion = "24.11";
|
||||||
++ homeStateVersion = "<your_home_manager_state_version>";
|
++ homeStateVersion = "<your_home_manager_state_version>";
|
||||||
-- user = "amper";
|
-- user = "amper";
|
||||||
++ user = "<your_username>";
|
++ user = "<your_username>";
|
||||||
hosts = [
|
hosts = [
|
||||||
-- { hostname = "slim3"; stateVersion = "24.05"; }
|
-- { hostname = "slim3"; stateVersion = "24.05"; }
|
||||||
-- { hostname = "330-15ARR"; stateVersion = "24.11"; }
|
-- { hostname = "330-15ARR"; stateVersion = "24.11"; }
|
||||||
++ { hostname = "<your_hostname>"; stateVersion = "<your_state_version>"; }
|
++ { hostname = "<your_hostname>"; stateVersion = "<your_state_version>"; }
|
||||||
];
|
];
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
7. **Rebuilding**:
|
7. **Rebuilding**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd nixos-config-reborn
|
cd nixos-config-reborn
|
||||||
nixos-rebuild switch --flake ./#<hostname>
|
nixos-rebuild switch --flake ./#<hostname>
|
||||||
# or nixos-install --flake ./#<hostname> if you are installing on a fresh system
|
# or nixos-install --flake ./#<hostname> if you are installing on a fresh system
|
||||||
home-manager switch
|
home-manager switch
|
||||||
```
|
```
|
||||||
|
|
||||||
## 😎 Enjoy!
|
## 😎 Enjoy!
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user