34d77542e7cc599ff2cddf2abdc708d66fd89a57
the impermanence activation scripts don't appear to mount folders -- only files. rather, the impermanence module creates fstab entries for each bind mount folder, and *something* (systemd?) mounts these *after* /run/current-system/activate is run. therefore, if we want access to a bind-mounted directory during activateion, we have to manually mount it. i.e. `mount /etc/ssh/host_keys`.
to deploy:
nixos-rebuild --flake "./#servo" {build,switch}
more options (like building packages defined in this repo):
nix flake show
secrets
i use sops for secrets.
see modules/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 (deploying ssh keys, optionally changing fs UUIDs, etc).
refer to flake.nix for more details.
building packages
to build one of the custom sane packages, just name it:
nix build ./#fluffychat-moby
to build a nixpkg:
nix build ./#nixpkgs.curl
to build a package for another platform:
nix build ./#packages.aarch64-linux.nixpkgs.ubootRaspberryPi4_64bit
Description
Languages
Nix
81%
C
8.7%
Python
4.5%
Hare
2.8%
Shell
1.2%
Other
1.7%