From 844118055c09ddbeeba9857b54dfdb412f6451ff Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Thu, 29 May 2025 21:00:40 +0200 Subject: [PATCH] Updated README.md --- README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1f6aef3..7b17d6f 100644 --- a/README.md +++ b/README.md @@ -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: ``` -sudo nix --experimental-features "nix-command flakes" run "github:nix-community/disko/latest#disko-install" -- --flake git+https://git.bulthuis.dev/Jan/dotfiles# --disk main /dev/sda -``` \ No newline at end of file +nix-shell -p disko +sudo disko --mode disko --flake git+https://git.bulthuis.dev/Jan/dotfiles# +sudo nixos-install --no-channel-copy --no-root-password --flake git+https://git.bulthuis.dev/Jan/dotfiles# +``` +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 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. \ No newline at end of file