cleanup TODO, readme
This commit is contained in:
parent
57886ec3d0
commit
d7d9c0b9ba
3
TODO.md
3
TODO.md
|
@ -4,9 +4,6 @@
|
||||||
- emoji picker application
|
- emoji picker application
|
||||||
- find a Masto/Pleroma app which works on mobile
|
- find a Masto/Pleroma app which works on mobile
|
||||||
|
|
||||||
# cleanup
|
|
||||||
- remove helpers from outputs section (use `let .. in`)
|
|
||||||
|
|
||||||
|
|
||||||
# speed up cross compiling
|
# speed up cross compiling
|
||||||
https://nixos.wiki/wiki/Cross_Compiling
|
https://nixos.wiki/wiki/Cross_Compiling
|
||||||
|
|
33
readme.md
33
readme.md
|
@ -1,9 +1,9 @@
|
||||||
to build:
|
to deploy:
|
||||||
```sh
|
```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
|
```sh
|
||||||
nix flake show
|
nix flake show
|
||||||
```
|
```
|
||||||
|
@ -11,8 +11,8 @@ nix flake show
|
||||||
|
|
||||||
# secrets
|
# secrets
|
||||||
|
|
||||||
we use [sops](https://github.com/Mic92/sops-nix) for secrets.
|
i use [sops](https://github.com/Mic92/sops-nix) for secrets.
|
||||||
see helpers/universal/secrets.nix for some tips.
|
see `modules/universal/secrets.nix` for some tips.
|
||||||
|
|
||||||
## building images
|
## building images
|
||||||
|
|
||||||
|
@ -21,25 +21,6 @@ to build a distributable image (GPT-formatted image with rootfs and /boot partit
|
||||||
nix build ./#imgs.lappy
|
nix build ./#imgs.lappy
|
||||||
```
|
```
|
||||||
this can then be `dd`'d onto a disk and directly booted from a EFI system.
|
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)
|
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
|
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
|
|
||||||
```
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user