heather: pinchtab browser control plane (chromium + user service) + pay x86_64 build

This commit is contained in:
heather 2026-09-09 17:18:40 +00:00
commit 70e95226d4
3 changed files with 40 additions and 3 deletions

View file

@ -7,11 +7,35 @@
{
home.stateVersion = "25.11";
# Expose pi only; do not add the whole npm global bin (which also contains pi-web).
# User-level tools installed outside Nix (PinchTab, pi wrapper, etc.).
home.sessionPath = [
"${config.home.homeDirectory}/.local/bin"
"${config.home.homeDirectory}/.local/libexec"
];
# Keep the browser control plane alive across SSH logout and reboots.
# PinchTab itself is installed outside Nix because its upstream release
# binary is dynamically linked; the local NixOS-compatible build lives in
# ~/.local/libexec/pinchtab.
systemd.user.services.pinchtab = {
Unit = {
Description = "PinchTab browser control plane";
After = [ "dbus-broker.service" ];
};
Service = {
ExecStart = "%h/.local/libexec/pinchtab server";
Restart = "on-failure";
RestartSec = 5;
Environment = [
"HOME=%h"
"PATH=/run/current-system/sw/bin:/home/mikl/.npm-global/bin:/home/mikl/.local/bin:/home/mikl/.local/libexec"
];
};
Install = {
WantedBy = [ "default.target" ];
};
};
home.file.".local/bin/pi" = {
executable = true;
text = ''
@ -39,6 +63,7 @@
# Git
git
tea # Forgejo/Gitea CLI
# Nix
alejandra # форматтер
@ -47,6 +72,9 @@
# Утилиты
delta # красивый git diff
trash-cli # rm с корзиной
# x402 / MPP agentic payments CLI (Solana Foundation)
(pkgs.callPackage ./pay.nix {})
];
# --- FZF ---