2024-07-18 06:08:27 +02:00
# Dotfiles
2024-06-24 16:06:35 +00:00
2024-12-02 01:03:01 +01:00
My NixOS configuration.
2025-05-29 17:04:58 +02:00
## Installation
2024-12-02 01:03:01 +01:00
2025-05-29 21:00:40 +02:00
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
2025-05-29 17:04:58 +02:00
2025-05-29 21:00:40 +02:00
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
2025-05-29 17:04:58 +02:00
```
2025-05-29 21:00:40 +02:00
Sometimes it may be necessary to reboot of course.