colin a9d167cf14 remove configuration.nix
it's no longer needed in nixos-22.05
2022-06-14 02:48:22 -07:00
2022-06-14 02:48:22 -07:00
2022-06-14 00:13:39 -07:00
2022-06-13 18:47:49 -07:00
2022-06-14 02:48:22 -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%