mirror of
https://github.com/davegallant/nix-config
synced 2025-08-05 10:33:39 +00:00
Fix rollbacks
This commit is contained in:
@@ -38,7 +38,13 @@ If there are updates, they should be reflected in [flake.lock](./flake.lock).
|
||||
To rollback to the previous generation:
|
||||
|
||||
```sh
|
||||
just rollback
|
||||
just rollback-linux
|
||||
```
|
||||
|
||||
or on macOS:
|
||||
|
||||
```sh
|
||||
just rollback-mac
|
||||
```
|
||||
|
||||
## Garbage collection
|
||||
|
5
justfile
5
justfile
@@ -8,9 +8,12 @@ build-linux:
|
||||
build-mac:
|
||||
darwin-rebuild switch -I nixos-config="machines/$host/configuration.nix" --flake .
|
||||
|
||||
rollback:
|
||||
rollback-linux:
|
||||
nixos-rebuild --use-remote-sudo switch --rollback -I nixos-config="machines/$host/configuration.nix"
|
||||
|
||||
rollback-mac:
|
||||
darwin-rebuild --rollback -I nixos-config="machines/$host/configuration.nix"
|
||||
|
||||
update:
|
||||
@./nix-flake-update.sh
|
||||
|
||||
|
Reference in New Issue
Block a user