cleanup TODO, readme

This commit is contained in:
Colin 2022-06-26 03:44:03 -07:00
parent 57886ec3d0
commit d7d9c0b9ba
2 changed files with 7 additions and 29 deletions

View File

@ -4,9 +4,6 @@
- emoji picker application
- find a Masto/Pleroma app which works on mobile
# cleanup
- remove helpers from outputs section (use `let .. in`)
# speed up cross compiling
https://nixos.wiki/wiki/Cross_Compiling

View File

@ -1,9 +1,9 @@
to build:
to deploy:
```sh
nixos-rebuild --flake "/etc/nixos/#servo" {build,switch}
nixos-rebuild --flake "./#servo" {build,switch}
```
query with:
more options (like building packages defined in this repo):
```sh
nix flake show
```
@ -11,8 +11,8 @@ nix flake show
# secrets
we use [sops](https://github.com/Mic92/sops-nix) for secrets.
see helpers/universal/secrets.nix for some tips.
i use [sops](https://github.com/Mic92/sops-nix) for secrets.
see `modules/universal/secrets.nix` for some tips.
## building images
@ -21,25 +21,6 @@ to build a distributable image (GPT-formatted image with rootfs and /boot partit
nix build ./#imgs.lappy
```
this can then be `dd`'d onto a disk and directly booted from a EFI system.
there's some post-processing to do before running a rebuild on the deployed system (e.g. change fstab UUIDs)
refer to flake.nix for more details
there's some post-processing to do before running a rebuild on the deployed system (deploying ssh keys, optionally changing fs UUIDs, etc).
refer to flake.nix for more details.
# admin tips
online: <https://nixos.wiki/wiki/Cheatsheet>
verify ALL nix store contents with:
```sh
sudo nix-store --verify --check-contents # add the --repair flag to auto-repair as well
```
search for a package with:
```sh
nix search nixpkgs <query string>
```
find which package owns some file with:
```sh
nix-locate /bin/vim # or any other package-relative path
```