mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 18:24:34 +00:00
Rewrite updating section
This commit is contained in:
parent
904fc0d65a
commit
4ac7557b4f
|
@ -153,9 +153,20 @@ git commit -m "Initial commit"
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
|
||||||
Over time, to update the software that's installed on your machine, you can use
|
Over time, you'll want to update the software that's installed on your machine,
|
||||||
`nix flake update`, to update your `flake.lock` file, and then `nixos-rebuild
|
to do that, we'll first want to update the `flake.lock` file, which contains
|
||||||
switch`, to get switch your system to the new dependencies.
|
the commit sha of the nixpkgs repo that's being used. To do so, you can use
|
||||||
|
this command (while in `~/dots` directory):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix flake update
|
||||||
|
```
|
||||||
|
|
||||||
|
After which, you'll probably also want to rebuild your system and switch:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nixos-rebuild switch --flake .
|
||||||
|
```
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> This replaces the legacy (non-flake) regime's command: `nixos-rebuild switch --upgrade`
|
> This replaces the legacy (non-flake) regime's command: `nixos-rebuild switch --upgrade`
|
||||||
|
|
Loading…
Reference in a new issue