top-level configurations for all my NixOS machines
colin
e8cc71b03e
i was using something from like 2021/06/... it's not new enough to have upstream support for phosh, so i still need the wrapper. i think such an update is blocked on the mobile-nixos project. |
||
---|---|---|
helpers | ||
machines | ||
modules | ||
pkgs | ||
secrets | ||
.gitignore | ||
configuration.nix | ||
flake.lock | ||
flake.nix | ||
image.nix | ||
readme.md | ||
TODO.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