colin 27ce21cda4 add aerc: a better terminal mail client
TODO: home-manager integration. its config file doesn't obviously
support passwords, but i could possibly encode it as a secret and
bind-mount the secret location, or symlink it?
2022-06-20 17:55:17 -07:00
2022-06-20 15:36:48 -07:00
2022-06-20 16:03:52 -07:00
2022-06-20 16:03:52 -07:00
2022-06-20 03:28:01 -07:00
2022-06-20 03:28:01 -07:00
2022-06-12 15:11:41 -07:00

to build:

nixos-rebuild --flake "/etc/nixos/#servo" {build,switch}

query with:

nix flake show

secrets

we use sops for secrets. see helpers/universal/secrets.nix for some tips.

building images

to build a distributable image (GPT-formatted image with rootfs and /boot partition):

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

admin tips

online: https://nixos.wiki/wiki/Cheatsheet

verify ALL nix store contents with:

sudo nix-store --verify --check-contents  # add the --repair flag to auto-repair as well

search for a package with:

nix search nixpkgs <query string>

find which package owns some file with:

nix-locate /bin/vim  # or any other package-relative path
Description
top-level configurations for all my NixOS machines
Readme 26 MiB
Languages
Nix 80.9%
C 8.7%
Python 4.5%
Hare 2.9%
Shell 1.2%
Other 1.7%