top-level configurations for all my NixOS machines
Go to file
Colin 91d8b95459 move secrets to a subdirectory, for improved overrides 2022-05-26 23:52:08 -07:00
helpers move 'machines/common' into helpers/ 2022-05-26 22:16:16 -07:00
machines pleroma: port to secrets.nix 2022-05-26 23:21:43 -07:00
modules migrate the nix install to an external USB drive. 2022-05-17 01:58:12 +00:00
pkgs toy around with explicitly spinning down the hard drive during shutdown 2022-05-18 10:40:28 +00:00
secrets move secrets to a subdirectory, for improved overrides 2022-05-26 23:52:08 -07:00
.gitignore move secrets to a subdirectory, for improved overrides 2022-05-26 23:52:08 -07:00
TODO.md TODO: erase ddclient (done); add video-driver TODO 2022-05-26 13:15:32 -07:00
configuration.nix port to a flake 2022-05-21 01:59:51 +00:00
flake.lock flake: cleanup old mobile-pkgs attempts 2022-05-24 23:12:17 -07:00
flake.nix move secrets to a subdirectory, for improved overrides 2022-05-26 23:52:08 -07:00
image.nix add img targets for desko and uninsane machines 2022-05-22 02:57:05 -07:00
readme.md readme: inline a few tips 2022-05-26 13:21:40 -07:00

readme.md

after checking out, drop secrets into secrets/

to build:

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

query with:

nix flake show

secrets

change files in secrets/. they need to be checked into git with some placeholder text for them to be exposed to the flake, but after that you can set them to their real value and run git update-index --assume-unchanged secrets/*

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