modernize instructions
This commit is contained in:
parent
0d34a0f6a8
commit
bf588787c0
2 changed files with 20 additions and 6 deletions
|
|
@ -243,7 +243,8 @@ Delete the downloaded key files from `~/Downloads/`.
|
||||||
After all manual steps are done:
|
After all manual steps are done:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo nixos-rebuild switch --flake ~/nix-config#xps15
|
cd ~/nix-config
|
||||||
|
sudo nixos-rebuild switch --flake .#xps15
|
||||||
```
|
```
|
||||||
|
|
||||||
### 12. Verify
|
### 12. Verify
|
||||||
|
|
|
||||||
23
README.md
23
README.md
|
|
@ -7,15 +7,28 @@ recovery, and key restore instructions.
|
||||||
|
|
||||||
## Day-to-day
|
## Day-to-day
|
||||||
|
|
||||||
|
All commands assume you're in `~/nix-config`.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo nixos-rebuild switch --flake ~/nix-config#xps15
|
# rebuild after editing config
|
||||||
|
sudo nixos-rebuild switch --flake .#xps15
|
||||||
|
|
||||||
nix flake update --flake ~/nix-config
|
# update all flake inputs, then rebuild
|
||||||
sudo nixos-rebuild switch --flake ~/nix-config#xps15
|
nix flake update
|
||||||
|
sudo nixos-rebuild switch --flake .#xps15
|
||||||
|
|
||||||
sudo nixos-rebuild switch --flake ~/nix-config#xps15 --rollback
|
# rollback to previous generation
|
||||||
|
sudo nixos-rebuild switch --flake .#xps15 --rollback
|
||||||
|
|
||||||
sudo nix-collect-garbage -d
|
# format all nix files
|
||||||
|
nix fmt
|
||||||
|
|
||||||
|
# garbage collect old generations + store
|
||||||
|
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system
|
||||||
|
nix store gc
|
||||||
|
|
||||||
|
# check flake for errors without building
|
||||||
|
nix flake check
|
||||||
```
|
```
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue