mirror of
https://github.com/flynx/nixos.git
synced 2025-10-28 10:40:08 +00:00
19 lines
339 B
Markdown
19 lines
339 B
Markdown
|
|
## Two stage update
|
|
|
|
The configuration is split into two parts to allow for two stage updates to conserve space
|
|
on storage-limited systems.
|
|
|
|
To run a two stage update do:
|
|
```shell
|
|
$ sudo NIX_LIGHTWEIGHT=1 nixos-rebbuild switch
|
|
$ reboot
|
|
```
|
|
then:
|
|
```shell
|
|
$ sudo nix-collect-garbage --delete-old
|
|
$ sudo nixos-rebbuild switch
|
|
```
|
|
|
|
|