Improved formatting
This commit is contained in:
parent
d83af3394a
commit
a3bd3286bb
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
|
@ -6,13 +6,13 @@ My NixOS configuration repository
|
|||
1. Install NixOS with graphical ISO image (e.g. GNOME). During the installation the desktop environment can be choosen.
|
||||
2. Reboot into NixOS
|
||||
3. Edit `/etc/nixos/configuration.nix` with sudoedit
|
||||
a) Change hostname
|
||||
b) Enable flakes. Add the following lines:
|
||||
a) Change hostname
|
||||
b) Enable flakes. Add the following lines:
|
||||
```
|
||||
# Enable flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
```
|
||||
c) Install tmux, neovim, git by adding them to `environment.systemPackages = with pkgs; [`
|
||||
c) Install tmux, neovim, git by adding them to `environment.systemPackages = with pkgs; [`
|
||||
4. Apply changes: `sudo nixos-rebuild switch` and reboot
|
||||
5. Clone NixOS config repository to /home/$USER/nixos:
|
||||
```
|
||||
|
|
@ -20,9 +20,9 @@ cd
|
|||
git clone https://git.plueschbit.de/jan/nixos-conf ~/nixos
|
||||
```
|
||||
6. Add the new host to repository
|
||||
a) Create ~/nixos/hosts/$HOSTNAME
|
||||
b) `cp /etc/nixos/*.nix $HOSTNAME/.`
|
||||
c) Edit `~/nixos/flake.nix` and add section for new host
|
||||
d) Stage new config files: `git add flake.nix hosts/$HOSTNAME/*`. Otherwise, nixos-rebuild will refuse to work with the files.
|
||||
a) Create ~/nixos/hosts/$HOSTNAME
|
||||
b) `cp /etc/nixos/*.nix $HOSTNAME/.`
|
||||
c) Edit `~/nixos/flake.nix` and add section for new host
|
||||
d) Stage new config files: `git add flake.nix hosts/$HOSTNAME/*`. Otherwise, nixos-rebuild will refuse to work with the files.
|
||||
7. Apply config: `sudo nixos-rebuild ~/nixos/$HOSTNAME`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue