top-level configurations for all my NixOS machines
Go to file
colin e8cc71b03e moby: update pkgs-mobile to 2022/03/30
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.
2022-05-24 02:47:04 -07:00
helpers moby: update pkgs-mobile to 2022/03/30 2022-05-24 02:47:04 -07:00
machines moby: update pkgs-mobile to 2022/03/30 2022-05-24 02:47:04 -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 secrets: document how to update a secret 2022-05-22 09:41:16 +00:00
.gitignore update readme to explain how to handle secrets with git 2022-05-21 02:08:49 +00:00
configuration.nix port to a flake 2022-05-21 01:59:51 +00:00
flake.lock moby: update pkgs-mobile to 2022/03/30 2022-05-24 02:47:04 -07:00
flake.nix moby: update pkgs-mobile to 2022/03/30 2022-05-24 02:47:04 -07:00
image.nix add img targets for desko and uninsane machines 2022-05-22 02:57:05 -07:00
readme.md flake: factor out some machine helpers 2022-05-22 14:40:29 -07:00
TODO.md scratch out old TODOs 2022-05-24 01:26:53 -07:00

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