Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
758fe7c73c | ||
|
|
22a9b12a25 |
No files matched your search
@@ -47,11 +47,6 @@ over Tailscale.
|
||||
- Steam and Wireshark enabled; `fstrim`, LVM thin provisioning.
|
||||
- `nix.gc.automatic = false` — GC is run manually on the laptop.
|
||||
|
||||
## Antigravity CLI
|
||||
|
||||
`my.agents.antigravity.enable` installs Google's `agy` CLI. Run it in a local checkout and
|
||||
sign in with your Google account. A paid Google AI Pro or Ultra account can select Gemini 4 Neon.
|
||||
|
||||
## Notable config files
|
||||
|
||||
- [`nixos/boxes/tower/default.nix`](../../nixos/boxes/tower/default.nix) — the whole box (single file).
|
||||
@@ -26,9 +26,6 @@ The AMD desktop runs the GUI stack (`my.gui.enable`, Sway/Wayland via home-manag
|
||||
PipeWire, Bluetooth and Thunderbolt. Local `libvirtd`/`virt-manager` and the IOMMU are enabled, but
|
||||
the box has no VFIO or GPU-passthrough configuration.
|
||||
|
||||
`my.agents.antigravity.enable` installs Google's `agy` CLI. Run it in a local checkout and
|
||||
sign in with your Google account. A paid Google AI Pro or Ultra account can select Gemini 4 Neon.
|
||||
|
||||
### Netboot
|
||||
|
||||
With `my.netboot.client.enable`, the firmware iPXE-boots from the 2.5G NIC. Kea matches
|
||||
|
||||
@@ -75,8 +75,8 @@ See the consolidated [network assignments](../../networking.md#box-assignments)
|
||||
## Paseo
|
||||
|
||||
A daemon (`paseo-server`) that starts and manages agents and serves a WebSocket API to the Paseo
|
||||
app, the web UI and the `paseo` CLI. Claude Code uses the Claude Agent SDK and the installed
|
||||
`claude` login. Codex runs through `codex app-server` and Antigravity through `agy acp`.
|
||||
app, the web UI and the `paseo` CLI. Claude Code runs through the Claude Agent SDK, using the
|
||||
installed `claude` and its claude.ai login; Codex runs through `codex app-server`.
|
||||
|
||||
### Service
|
||||
|
||||
@@ -110,10 +110,10 @@ from the app don't survive a restart. It:
|
||||
let an agent change its own mode, answer its own permission prompts or open terminals;
|
||||
- requires relay replay protection;
|
||||
- turns off dictation and voice, which would otherwise download a large local speech model;
|
||||
- enables Claude, Codex and Antigravity in the provider picker;
|
||||
- adds "Claude, bypass permissions" and "Codex, full access" agent profiles. Select one when
|
||||
starting an agent to override the upstream defaults (`auto` for Claude and `auto-review`
|
||||
for Codex).
|
||||
- hides providers other than Claude and Codex;
|
||||
- adds "Claude, bypass permissions" and "Codex, full access" agent profiles. Each provider's
|
||||
default mode is hardcoded upstream (Claude `auto`, Codex `auto-review`), and profiles are the
|
||||
only way to preset one, so pick a profile when starting an agent for the permissive mode.
|
||||
|
||||
### Connectivity
|
||||
|
||||
@@ -163,7 +163,7 @@ through `jj`:
|
||||
Paseo has the full rights of `slop-cannon`, and `slop-cannon` has root: anyone with the daemon
|
||||
password or a pairing controls the VM.
|
||||
|
||||
- Claude Code, Codex and Antigravity come from the shared `my.agents` home-manager module.
|
||||
- Claude Code and Codex come from the shared `my.agents` home-manager module.
|
||||
- Claude's user settings deny raw `deploy` and `ssh-machine`, and allow `slop`, since the broker
|
||||
asks a human where its policy says so. The checkout's `.keys/` only has the committed public
|
||||
keys, so reading it isn't denied. Claude's managed settings
|
||||
@@ -176,18 +176,15 @@ password or a pairing controls the VM.
|
||||
sandbox (`approval_policy = "never"`, `sandbox_mode = "danger-full-access"`). Agents started
|
||||
through Paseo use its defaults unless started with one of the profiles above.
|
||||
- Codex stores its credentials in a file.
|
||||
- Antigravity defaults to **Full access** in Paseo. **Default** uses Antigravity's approval
|
||||
policy for edits and commands. **Accept edits** auto-approves workspace edits and can still
|
||||
prompt for commands.
|
||||
|
||||
### Privileged operations
|
||||
|
||||
Agents ask [`slop-broker`](../../slop-broker.md) on `palace` for anything needing credentials, with
|
||||
the `slop` command (`my.agents.slop.enable`). It connects over vsock (CID 3; see
|
||||
[`palace`](palace.md#slop-broker)). The agent guide, `slop guide`, is installed as a Claude rule
|
||||
(`~/.claude/rules/slop.md`) and included in the global `AGENTS.md` for Codex and Antigravity.
|
||||
(`~/.claude/rules/slop.md`) and as Codex's `AGENTS.md`.
|
||||
The `my.agents.rules.slop-approvals` rule adds the local guidance on waiting for approval
|
||||
and pausing after expiry to each provider's user-level instructions, including in Paseo sessions.
|
||||
and pausing after expiry to both providers' user-level instructions, including in Paseo sessions.
|
||||
|
||||
## SSH and first login
|
||||
|
||||
@@ -200,12 +197,8 @@ To set up provider logins and repos on a fresh agent home, connect with `ssh slo
|
||||
|
||||
1. `claude auth login` (a full login; `setup-token` tokens are not enough for every feature).
|
||||
2. `codex login --device-auth`.
|
||||
3. For Antigravity, run `agy acp --login` over SSH as `slop-cannon`. Sign in with a paid Google
|
||||
AI Pro or Ultra account for Gemini 4 Neon. Paseo uses the same token file through the
|
||||
provider's `SSH_CONNECTION` setting. Once the service has picked up its config, refresh
|
||||
**Settings → Providers → Antigravity** to see the account's models.
|
||||
4. [Pair a Paseo client](#pair-a-paseo-client).
|
||||
5. `slop-clone <owner>/<repo>` for each repo. It clones a colocated jj repo over HTTPS into
|
||||
3. [Pair a Paseo client](#pair-a-paseo-client).
|
||||
4. `slop-clone <owner>/<repo>` for each repo. It clones a colocated jj repo over HTTPS into
|
||||
`~/src/<repo>` and registers it with Paseo as a local workspace.
|
||||
|
||||
## Gitea
|
||||
@@ -217,9 +210,10 @@ scopes `write:repository` and `write:issue`).
|
||||
authored as Dev through the shared Git config; the pushes are the bot's.
|
||||
- **`tea`**, Gitea's CLI, is wrapped to log in with the same token, so agents can open and update
|
||||
pull requests.
|
||||
- **Pull requests:** a rule for every agent (`my.agents.rules.gitea`) makes a pull request from a
|
||||
branch of its own the default way to finish a piece of work and explains how to do it with jj
|
||||
and `tea`. A repository's own `AGENTS.md` can allow more, such as pushing to its main branch.
|
||||
- **Pull requests:** a rule for every agent (`my.agents.rules.gitea`: a Claude rule, and part of
|
||||
Codex's `AGENTS.md`) makes a pull request from a branch of its own the default way to finish a
|
||||
piece of work, and says how with jj and `tea`. A repository's own `AGENTS.md` can allow more,
|
||||
such as pushing to its main branch.
|
||||
- **Issues:** the same rule keeps agents' running notes, plans and handoffs in Gitea issues on
|
||||
the repository they're about, rather than in files on branches that go stale. Durable facts
|
||||
still go in the repository's docs, and the issue is closed.
|
||||
|
||||
Generated
+6
-6
@@ -1249,16 +1249,16 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1795984395,
|
||||
"narHash": "sha256-AiAdbNcyquBNZLJDE/dVQsYZlKdqlbNlh9XNfJd8jgw=",
|
||||
"ref": "refs/heads/progress",
|
||||
"rev": "6bce33dc66b232a5401ead98c29adef33eb895fd",
|
||||
"revCount": 62,
|
||||
"lastModified": 1795889921,
|
||||
"narHash": "sha256-ebTN4RWPubDGjV7HhlQ3u39XnzHk+o56J/s1BOflhLE=",
|
||||
"ref": "refs/tags/v0.3.0",
|
||||
"rev": "a5652600217812170be1b728f6dbc446b4b4be9f",
|
||||
"revCount": 43,
|
||||
"type": "git",
|
||||
"url": "https://git.nul.ie/dev/slop-broker"
|
||||
},
|
||||
"original": {
|
||||
"ref": "refs/heads/progress",
|
||||
"ref": "refs/tags/v0.3.0",
|
||||
"type": "git",
|
||||
"url": "https://git.nul.ie/dev/slop-broker"
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
# Our fork with Jujutsu support, one branch per upstream release it is rebased onto. Don't make
|
||||
# it follow our nixpkgs: its npm dependency hash is tied to its own nixpkgs pin.
|
||||
paseo.url = "git+https://git.nul.ie/dev/paseo?ref=fork/jujutsu-v0.17.5";
|
||||
slop-broker.url = "git+https://git.nul.ie/dev/slop-broker?ref=refs/heads/progress";
|
||||
slop-broker.url = "git+https://git.nul.ie/dev/slop-broker?ref=refs/tags/v0.3.0";
|
||||
slop-broker.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
borgthin.url = "github:devplayer0/borg";
|
||||
# TODO: Update borgthin so this works
|
||||
|
||||
@@ -7,25 +7,21 @@ let
|
||||
agentPkgs = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
slopGuide = "${pkgs.slop-broker}/share/slop-broker/slop-tools.md";
|
||||
|
||||
# Claude takes individual rule files. Codex and Antigravity share one `AGENTS.md`.
|
||||
# Claude takes a rule file each; Codex takes one `AGENTS.md`
|
||||
rules = optionalAttrs cfg.slop.enable { slop = slopGuide; }
|
||||
// mapAttrs (name: text: pkgs.writeText "${name}.md" text) cfg.rules;
|
||||
agentContext = pkgs.concatText "AGENTS.md" (attrValues rules);
|
||||
codexContext = pkgs.concatText "AGENTS.md" (attrValues rules);
|
||||
in
|
||||
{
|
||||
options.my.agents = {
|
||||
enable = mkBoolOpt' false "Whether to install and configure coding agents (Claude Code, Codex).";
|
||||
antigravity.enable = mkBoolOpt' false "Whether to also install and configure Antigravity CLI.";
|
||||
slop.enable = mkBoolOpt' false "Whether agents use the `slop` client for privileged operations.";
|
||||
rules = mkOpt' (types.attrsOf types.lines) { }
|
||||
"Named instructions for every agent, installed as individual Claude rules and combined into an `AGENTS.md` for Codex and Antigravity.";
|
||||
"Instructions for every agent, by name: a Claude rule each, and appended to Codex's `AGENTS.md`.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = optional cfg.slop.enable pkgs.slop-broker;
|
||||
home.file = mkIf (cfg.antigravity.enable && rules != { }) {
|
||||
".gemini/AGENTS.md".source = agentContext;
|
||||
};
|
||||
|
||||
programs = {
|
||||
# TODO: Remove mutableSettings guard when Home Manager 26.11 releases; 26.05 lacks it.
|
||||
@@ -50,7 +46,7 @@ in
|
||||
} // optionalAttrs (options.programs.codex ? mutableSettings) {
|
||||
mutableSettings = true;
|
||||
} // optionalAttrs (rules != { }) {
|
||||
context = "${agentContext}";
|
||||
context = "${codexContext}";
|
||||
};
|
||||
|
||||
claude-code = {
|
||||
@@ -67,8 +63,6 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
} // optionalAttrs cfg.antigravity.enable {
|
||||
antigravity-cli.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -281,7 +281,6 @@ in
|
||||
};
|
||||
|
||||
my = {
|
||||
agents.antigravity.enable = true;
|
||||
gui = {
|
||||
standalone = true;
|
||||
manageGraphical = true;
|
||||
|
||||
@@ -242,7 +242,6 @@ in
|
||||
home-manager.users.${agentUser} = {
|
||||
my.agents = {
|
||||
enable = true;
|
||||
antigravity.enable = true;
|
||||
slop.enable = true;
|
||||
rules.gitea = giteaRule;
|
||||
rules.slop-approvals = ''
|
||||
@@ -366,11 +365,8 @@ in
|
||||
voiceMode.enabled = false;
|
||||
};
|
||||
agents.providers = lib.genAttrs
|
||||
[ "copilot" "opencode" "pi" "omp" "muse" ]
|
||||
(_: { enabled = false; }) // {
|
||||
# Use the token file from the agent user's SSH login.
|
||||
antigravity.env.SSH_CONNECTION = "paseo";
|
||||
};
|
||||
[ "copilot" "opencode" "pi" "omp" "antigravity" "muse" ]
|
||||
(_: { enabled = false; });
|
||||
log.file.level = "info";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -160,8 +160,6 @@
|
||||
user = {
|
||||
tmphome = false;
|
||||
homeConfig = {
|
||||
my.agents.antigravity.enable = true;
|
||||
|
||||
services = {
|
||||
network-manager-applet.enable = true;
|
||||
};
|
||||
|
||||
@@ -13,6 +13,7 @@ in
|
||||
windowtolayer = callPackage ./windowtolayer.nix { };
|
||||
swaylock-plugin = callPackage ./swaylock-plugin.nix { };
|
||||
firefox-memory-control = callPackage ./firefox-memory-control { };
|
||||
tracedraw = callPackage ./tracedraw.nix { };
|
||||
|
||||
update-docs-assignments = pkgs.writeShellScriptBin "update-docs-assignments" ''
|
||||
exec ${pkgs.python3}/bin/python3 ${../ci/update-docs-assignments.py} "$@"
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, makeWrapper
|
||||
, cups
|
||||
, dbus
|
||||
, libGL
|
||||
, libxcb
|
||||
, libxcursor
|
||||
, libxi
|
||||
, libxkbcommon
|
||||
, libxrandr
|
||||
, libx11
|
||||
, vulkan-loader
|
||||
, wayland
|
||||
, xdg-utils
|
||||
, zenity
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "tracedraw";
|
||||
version = "0.53.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tracedraw";
|
||||
repo = "tracedraw";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-4pHEN4i+8xwyLrdQz3qfPmbt5CS1nQw2/mgEenXSZ6I=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-VvtHt6pajYwdSvtNm21wSm9Pir/+JwrM5147TR9jMSY=";
|
||||
cargoBuildFlags = [ "-p" "tracedraw" "-p" "tracedraw-cli" ];
|
||||
|
||||
# The editor's test binary is substantially larger than the editor itself.
|
||||
cargoTestFlags = [ "-p" "tracedraw-cli" "--tests" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
buildInputs = [ libxkbcommon wayland ];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 packaging/linux/tracedraw.desktop -t "$out/share/applications"
|
||||
install -Dm644 assets/icon/tracedraw-256.png "$out/share/icons/hicolor/256x256/apps/tracedraw.png"
|
||||
install -Dm644 packaging/linux/tracedraw-mime.xml "$out/share/mime/packages/tracedraw.xml"
|
||||
install -Dm644 packaging/linux/tracedraw.thumbnailer -t "$out/share/thumbnailers"
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/tracedraw" \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
|
||||
dbus
|
||||
libGL
|
||||
libxcb
|
||||
libxcursor
|
||||
libxi
|
||||
libxkbcommon
|
||||
libxrandr
|
||||
libx11
|
||||
vulkan-loader
|
||||
wayland
|
||||
]}" \
|
||||
--suffix PATH : "${lib.makeBinPath [ cups xdg-utils zenity ]}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Vector illustration, page layout and print editor";
|
||||
homepage = "https://github.com/tracedraw/tracedraw";
|
||||
license = with lib.licenses; [ mit asl20 ];
|
||||
mainProgram = "tracedraw";
|
||||
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user