Files
hermenix/guest/local.nix.example
T
ariandClaude Sonnet 5 41ea93a28f Eliminate the git-clone dependency entirely
hermenix setup/migrate/remote no longer need a local checkout anywhere:

- Host-specific settings (cache signing key, SSH keys) now live at
  /etc/hermenix/local.nix on the host itself, read via an absolute-path
  import in common.nix (--impure, deliberately - reading outside the
  flake's own source tree). No more guest/common.nix patching, no more
  guest/common.nix.bak, no more git-pull conflicts on a locally-edited
  tracked file (see the hermes-vm.service incident on hl-fwdesk).
- `setup` builds directly from the flake's own git+ssh URL by default
  (--flake to override), so it works from any directory on any host -
  dropped the "run this from the hermenix repository root" requirement
  entirely.
- `remote` now just runs `nix run <flake>#hermenix -- ...` on the target
  host directly - dropped the clone-if-missing/--dir/--repo machinery,
  since there's no checkout to manage anymore.

guest/local.nix.example documents the expected shape. Verified the
write-then-read-back round trip (nix-instantiate --eval --json) and the
simplified remote command construction against sandboxed stubs before
pushing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-15 15:10:13 -04:00

19 lines
755 B
Plaintext

# Host-specific settings, imported by common.nix from /etc/hermenix/local.nix
# on the HOST (not from this repo - it lives outside the flake's own source
# tree on purpose, since this flake is meant to be built from its git+ssh URL
# with no local checkout at all).
#
# `hermenix setup` writes /etc/hermenix/local.nix for you. This file is just
# the reference for its shape.
{
# Output of `cat /var/lib/secrets/hermes-cache.pub` on the host, once
# generated. Leave empty (or omit the file entirely) and the guest just
# skips the host cache, falling back to cache.nixos.org.
cachePublicKey = ""; # e.g. "hermes-cache-1:AbCd..."
# Your SSH public key(s), for `hermes-vm ssh`.
authorizedKeys = [
# "ssh-ed25519 AAAA... you@laptop"
];
}