1
0
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:
andrey_varnavskiy
2024-12-14 06:34:25 +05:00
parent e20eb30979
commit f46ed71220

View File

@@ -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**:
```bash
```bash
cd hosts
cp -r slim3 <your_hostname>
cd <your_hostname>
```
```
4. **Put your `hardware-configuration.nix` file there**:
```bash
cp /etc/nixos/hardware-configuration.nix ./
```
```bash
cp /etc/nixos/hardware-configuration.nix ./
```
5. **Edit `hosts/<your_hostname>/local-packages.nix` and `nixos/packages.nix` files if needed**:
```bash
```bash
vim local-packages.nix
vim ../../nixos/packages.nix
```
```
6. **Finally, edit the `flake.nix` file**:
```diff
...
outputs = { self, nixpkgs, home-manager, ... }@inputs: let
system = "x86_64-linux";
-- homeStateVersion = "24.11";
++ homeStateVersion = "<your_home_manager_state_version>";
-- user = "amper";
++ user = "<your_username>";
hosts = [
-- { hostname = "slim3"; stateVersion = "24.05"; }
-- { hostname = "330-15ARR"; stateVersion = "24.11"; }
++ { hostname = "<your_hostname>"; stateVersion = "<your_state_version>"; }
];
...
```
```diff
...
outputs = { self, nixpkgs, home-manager, ... }@inputs: let
system = "x86_64-linux";
-- homeStateVersion = "24.11";
++ homeStateVersion = "<your_home_manager_state_version>";
-- user = "amper";
++ user = "<your_username>";
hosts = [
-- { hostname = "slim3"; stateVersion = "24.05"; }
-- { hostname = "330-15ARR"; stateVersion = "24.11"; }
++ { hostname = "<your_hostname>"; stateVersion = "<your_state_version>"; }
];
...
```
7. **Rebuilding**:
```bash
cd nixos-config-reborn
nixos-rebuild switch --flake ./#<hostname>
# or nixos-install --flake ./#<hostname> if you are installing on a fresh system
home-manager switch
```
```bash
cd nixos-config-reborn
nixos-rebuild switch --flake ./#<hostname>
# or nixos-install --flake ./#<hostname> if you are installing on a fresh system
home-manager switch
```
## 😎 Enjoy!