Updated README.md

This commit is contained in:
Jan-Bulthuis 2025-05-29 21:00:40 +02:00
parent 0ba9de0030
commit 844118055c

View File

@ -4,8 +4,22 @@ My NixOS configuration.
## Installation
For disk configuration we use disko, this means that installing the system from the configuration is just a single command:
For disk configuration we use disko, this means that installing the system can be done with the following commands:
```
nix-shell -p disko
sudo disko --mode disko --flake git+https://git.bulthuis.dev/Jan/dotfiles#<system>
sudo nixos-install --no-channel-copy --no-root-password --flake git+https://git.bulthuis.dev/Jan/dotfiles#<system>
```
If `nixos-install` is being stopped by the OOM-killer, you can try adding `-j 1` to limit the amount of jobs that will be executed at the same time to 1. It might require running nixos-install multiple times untill it has managed to download all requirements and slowly start building the rest of the system.
## Updating
To update the system configuration, it is a single command:
```
sudo nix --experimental-features "nix-command flakes" run "github:nix-community/disko/latest#disko-install" -- --flake git+https://git.bulthuis.dev/Jan/dotfiles#<hostname> --disk main /dev/sda
sudo system-update
```
Or if this shell script has not been installed for some reason:
```
sudo nixos-rebuild switch --flake git+https://git.bulthuis.dev/Jan/dotfiles
```
Sometimes it may be necessary to reboot of course.