summaryrefslogtreecommitdiffstats
path: root/configs
Commit message (Collapse)AuthorAgeFilesLines
* configs/hermes: keep perl out of the closuretv7 days1-0/+14
| | | | | | | | | profiles/perlless forbids perl in the system closure, and hermes-agent brought it in twice: nixpkgs' git (send-email, gitweb & co.), on the package's runtime PATH and the module's unit PATH, and wl-clipboard, whose xdg-utils needs perl. Override the package with gitMinimal and without wl-clipboard, which has no use without Wayland, and replace the unit's PATH, as the package brings git itself.
* configs/hermes: don't patch nixos-26.05's patchelftv7 days1-2/+9
| | | | | | | hermes-agent patches patchelf for a bug of 0.19 (NixOS/patchelf#674). nixos-26.05's patchelf is 0.15, which doesn't have that bug, and the patch fails to apply to it. Make overrideAttrs a no-op on a patchelf older than 0.19, in the pkgs only hermes-agent's flake sees.
* configs/hermes: make hermes-agent evaluate with nixos-26.05tv7 days1-1/+7
| | | | | | | | | | | nixos-26.05's fetchPnpmDeps calls pnpm.override for a pnpm >= 11, to rebuild its nodejs-slim with a pinned SQLite. hermes-agent passes its pinned pnpm 12, a plain attrset carrying nixpkgs' nodejs-slim, which has no override. Give it one, in the pkgs only hermes-agent's flake sees. This evaluates, but the build is untested: the pinned SQLite may make the pnpm deps' fixed-output hash differ from hermes-agent's. With nixos-unstable the overlay changes no derivation.
* configs/hermes: build hermes-agent with the system's nixpkgstv7 days1-11/+37
| | | | | | | | | | | | flake-compat evaluates hermes-agent's flake with the nixpkgs locked in its flake.lock, nixos-unstable. Instead, call the flake and its inputs directly, with this system's pkgs as nixpkgs, which all of them follow anyway. The other inputs are still fetched as locked. The NixOS module is imported from its file, as the flake's nixosModules.default needs pkgs, which imports can't use. hermes-agent targets nixos-unstable: with nixos-26.05, evaluation fails in fetchPnpmDeps, which expects a pnpm it can override.
* configs/hermes: run hermes as hermes in a tmux, attach as roottv7 days1-7/+24
| | | | | | | | The console is root's again. hermes runs as hermes in a tmux started by hermes-tmux.service, and root's login shell attaches to it; detaching gives root's shell back. tmux lets root attach to another user's server. Quitting hermes ends the session, and systemd starts a new one.
* configs/hermes: use hermes on the console as hermes, not roottv7 days1-3/+6
| | | | | | | The console logs in as hermes instead of root, and the hermes CLI goes into that user's packages instead of the system's. The user's home is the service's stateDir, so the CLI finds the service's state at ~/.hermes without HERMES_HOME set system-wide.
* configs/hermes: add Hermes Agenttv7 days1-0/+50
Hermes Agent from its own NixOS module, imported through flake-compat, with what this guest needs on top: - nixos-init doesn't run activation scripts, so the module's setup runs as hermes-agent-setup.service before the gateway - state lives on the rw-store drive, as /var is a tmpfs - the hermes user doesn't linger, as users.manageLingering is off (hermes' cron needs a user manager; nothing else does) The API key comes from /xchg/hermes.env.