From bc47b506c28366f2cbc54855aee07888105c61eb Mon Sep 17 00:00:00 2001 From: Jelle Spreeuwenberg Date: Sat, 5 Sep 2026 15:27:19 +0200 Subject: [PATCH] small updates --- flake.lock | 99 ++++++++++++----------- modules/capabilities/ai.nix | 34 ++++++++ modules/capabilities/desktop-defaults.nix | 1 - 3 files changed, 84 insertions(+), 50 deletions(-) diff --git a/flake.lock b/flake.lock index 51e4d5f..2f71976 100644 --- a/flake.lock +++ b/flake.lock @@ -20,15 +20,16 @@ ] }, "locked": { - "lastModified": 1784665499, - "narHash": "sha256-9BMxlTxCCDAeoNLtb1a/st7udtTIJep+wpUzquA29VU=", - "owner": "nix-community", + "lastModified": 1788011267, + "narHash": "sha256-mEq2kU+ljompTToZ44Afvm7d/rHJ5iMBl0tjZuyShJs=", + "owner": "Mic92", "repo": "bun2nix", - "rev": "0f2a1f0b6f42cebe3b149bf62d38754c5e0e9729", + "rev": "5765b0614591f75ee8ba5596e81ae85c167d1071", "type": "github" }, "original": { - "owner": "nix-community", + "owner": "Mic92", + "ref": "fix-structured-attrs-hook", "repo": "bun2nix", "type": "github" } @@ -79,11 +80,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1787559586, - "narHash": "sha256-onL0VLf9vPllmT0H/OlURIU5r5t5WIEl7t4tVNKT0Nw=", + "lastModified": 1788450739, + "narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "9d0d87172c374f89da73c1cfe6d81ae62feac1f1", + "rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993", "type": "github" }, "original": { @@ -100,11 +101,11 @@ ] }, "locked": { - "lastModified": 1785627969, - "narHash": "sha256-4dtXQk/NMePegK/nWp5NSeuZKLATItOq61lpEvmXqGw=", + "lastModified": 1788450739, + "narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "427bf4bd9435fdf21321c8cc628c24efc14c0f7a", + "rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993", "type": "github" }, "original": { @@ -139,11 +140,11 @@ ] }, "locked": { - "lastModified": 1787540599, - "narHash": "sha256-MHwk52ty3NsLhq9a1IbIfBJZlCUJIdiUYFo52JLK9hY=", + "lastModified": 1788487777, + "narHash": "sha256-Ro/e1N4ZR8/XaFF+sF9SgfPK79HM5YNEppzFj8p+0Ak=", "owner": "nix-community", "repo": "home-manager", - "rev": "03f4cd46bc1dd4f3a96da778d2ce9f7ce39dd450", + "rev": "693e8ce0fb240a73c116a03cfd7b19269c87af88", "type": "github" }, "original": { @@ -154,11 +155,11 @@ }, "import-tree": { "locked": { - "lastModified": 1784254960, - "narHash": "sha256-iI88R3wHz8wTKQb5orvpc51L/Xr64AJyxid/0MKa/b8=", + "lastModified": 1788467110, + "narHash": "sha256-ljEMTXP/rH0tOvDzc9gzwww6KcHRPRnEHzd9lK48V7s=", "owner": "vic", "repo": "import-tree", - "rev": "4ebb10ae17d5f1ad366e7aef5b92cb8eecf24f69", + "rev": "eb1b52eaecc57f7c136d07ae8a93e724dfecac46", "type": "github" }, "original": { @@ -178,11 +179,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1787551962, - "narHash": "sha256-zfumhlJTGDKSILebSBa8nTKG76ByIPlLkGPAKjxaiwE=", + "lastModified": 1788602747, + "narHash": "sha256-WsI2ZhA2Gv/1pSYcovj7kbikl4hfuJmFPb0GK1Nfpzo=", "owner": "numtide", "repo": "llm-agents.nix", - "rev": "46e6a013fd49779cd2def2c98fa447f197da3fe7", + "rev": "9cd345e386f30d746cf763343de805f283068649", "type": "github" }, "original": { @@ -198,11 +199,11 @@ ] }, "locked": { - "lastModified": 1787457452, - "narHash": "sha256-FJh4esFS3zqNNuKwvN3t6wrJGewqp1AUF9DAEvoKPD8=", + "lastModified": 1788080100, + "narHash": "sha256-n14luQo3F/ZLfCEHk1QieiI1nGnW92ZQZeZ0UIb0UMQ=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "c51d5c2ba69c907a34e90c9b6b80cd2b93811745", + "rev": "dbb978fa87faf13398e90ccbc52c343d21c7dd6d", "type": "github" }, "original": { @@ -218,11 +219,11 @@ ] }, "locked": { - "lastModified": 1787579952, - "narHash": "sha256-Dn6IPaLyltx8hBTyC4hgNWDb7T7WHRYUG6wWh6KBHXA=", + "lastModified": 1788546427, + "narHash": "sha256-vOgWUFj6iCUi9p0+jEBi4cM6vcQsaBujYOBCw1ALVUs=", "owner": "BirdeeHub", "repo": "nix-wrapper-modules", - "rev": "b56e973dd2bd62244b44d6542fb52182bc3a3cda", + "rev": "7f7c780597c2dc595d5db7eaffd7387b417e1eb5", "type": "github" }, "original": { @@ -236,11 +237,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1787144466, - "narHash": "sha256-HHfv2/HkNSKbbSyU9iD/g8lbP6r4tl33sSw1W4rXCk0=", + "lastModified": 1788335262, + "narHash": "sha256-3jBEq8avfzlrsY4UpW4d5TOmm7ocseZfnitEJhqauyc=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "0471accf8d0a8210b31d947497d179ecc99e0021", + "rev": "44d95795ee2d475b3d687325e26dcf4ca9104557", "type": "github" }, "original": { @@ -268,11 +269,11 @@ }, "nixpkgs-lib": { "locked": { - "lastModified": 1785031560, - "narHash": "sha256-OmshNvn2vupOFpYinLUu+1Dnpu4n7Q5N3ggGVNHpkUI=", + "lastModified": 1788057806, + "narHash": "sha256-DTQSMxzDWmT0zhguthvegnVkn7CFqGCv4IHCzk5ZUpM=", "owner": "nix-community", "repo": "nixpkgs.lib", - "rev": "0e79af5e3d4dcfcd676ab5ba3f95d2e3352e078c", + "rev": "596e2e3940e09b2abbeb03f75fa1828c57fcd72c", "type": "github" }, "original": { @@ -283,11 +284,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1787414105, - "narHash": "sha256-WncT27+3BOkgTaJZLnCsf3LcYf9RXMuR9ONSN4rzQ7s=", + "lastModified": 1788405554, + "narHash": "sha256-r2f1oUwixlgq9zOdYLqJLfS/lWBT60/IITjhTKI59JU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a9e6d84f9c2f9012f5fe7d964a7851352300e61a", + "rev": "a5cc6f2c37bf518436dc8d1c288ccd0c43c2f4c4", "type": "github" }, "original": { @@ -312,11 +313,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1787394516, - "narHash": "sha256-wS+SNrj0wobAXQONggzrpetnZ9E0FL7l0WVWDRQ77Sc=", - "rev": "c8f90650c15282fa8656a041bfbbd2403997a9a7", + "lastModified": 1788400875, + "narHash": "sha256-v4ZEET1Ah1K9+wMaIwPH/JTQK3MwW/gZC/SyjnlBX74=", + "rev": "5545adfad2e98de106a5544ca7067e03010410bd", "type": "tarball", - "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1059707.c8f90650c152/nixexprs.tar.xz" + "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1066699.5545adfad2e9/nixexprs.tar.xz" }, "original": { "type": "tarball", @@ -325,11 +326,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1787360063, - "narHash": "sha256-95aJfHyQTLWslCXFVNB0odgmVkpdmDezQwTg9mhqV1E=", - "rev": "2c423e03bbafcff28bfadc6781a4a8257f205cb5", + "lastModified": 1787900134, + "narHash": "sha256-5GWj0FI2uOwKNpXkmpWrSFDe1rCaNBCUQ8d+HDtFQPI=", + "rev": "83199d0d373dd3ac2b9a1996b1d0263f76ab7a4c", "type": "tarball", - "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1059570.2c423e03bbaf/nixexprs.tar.zst" + "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1063296.83199d0d373d/nixexprs.tar.zst" }, "original": { "type": "tarball", @@ -341,11 +342,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1787575682, - "narHash": "sha256-qSjBgNe40+DxiMV+obDrJ+WCI/zynUbOtcXQDAXv5Fk=", + "lastModified": 1788600693, + "narHash": "sha256-rFFsGcRc7B1GdwpFk/2VCSWL+vpMXi8EFgmWuKJd9I0=", "owner": "noctalia-dev", "repo": "noctalia", - "rev": "0f61b0ae07607739189d07a0a7617ef0d8f3796c", + "rev": "f81c030d6403edeaae1a0953ee60ad43f334e300", "type": "github" }, "original": { @@ -401,11 +402,11 @@ ] }, "locked": { - "lastModified": 1786629091, - "narHash": "sha256-gkig4nPi1CWc4Z50GBsjE4ygSE7hMpl/TwID2an2Cck=", + "lastModified": 1788337237, + "narHash": "sha256-gkSH8VUtCo6hnysNmb9DbTuDepH2t5pv+QWjP75xKAk=", "owner": "Mic92", "repo": "sops-nix", - "rev": "a8627b21b9107c5711c96b84f32a9a4b3d45295f", + "rev": "fbf759290e0cb0a98dfc813a4eb7d53ad1dacb57", "type": "github" }, "original": { diff --git a/modules/capabilities/ai.nix b/modules/capabilities/ai.nix index 8145c80..047a9d0 100644 --- a/modules/capabilities/ai.nix +++ b/modules/capabilities/ai.nix @@ -69,5 +69,39 @@ in pkgs.llm-agents.herdr pkgs.ctx7 ]; + + home.file.".codex/AGENTS.md".text = '' + # Environment + + This is Nix; use `nix run` for missing commands. + + - Default Nix commands to `--quiet`; inspect logs only for failing derivations. + - Never emit full package, derivation, closure, GC, or store-tree listings. Capture them in `/tmp`, summarize or filter, then inspect targeted excerpts. + - For store sources, locate files first, then read exact ranges; avoid broad `rg -C` searches. + + # Work + + - Inspect the relevant implementation and follow project conventions. + - Prefer the simplest complete solution. + - Identify and address root causes rather than masking symptoms. + - Prefer existing capabilities and defaults. Add custom code, wrappers, helpers, defensive checks, fallbacks, compatibility layers, or abstractions only for a concrete need. + - Delete unnecessary code; keep related logic together. + - Use types, schemas, and interfaces to prevent invalid states where practical. + - Keep changes focused; preserve behavior unless requested or fixing a confirmed defect. + - Verify unfamiliar, version-sensitive, or consequential APIs against current documentation; prefer context7. + - Run the most relevant checks; report only verification performed. + + # Reviews and refactoring + + - Inspect complete relevant context, not just the obvious file or diff. + - Find unnecessary or duplicated code, redundant state, avoidable checks, reimplemented capabilities, and repeated defaults. + - Ask whether defensive code protects a realistic state or hides an unclear invariant. + - Optimize conceptual complexity, not line count. + - Separate confirmed problems from optional improvements; explain important tradeoffs. + + # Context + + Every action must justify its context. Minimize tools and skills; prefer targeted queries and bounded output. Ask for readily available large output instead of retrieving it. + ''; }; } diff --git a/modules/capabilities/desktop-defaults.nix b/modules/capabilities/desktop-defaults.nix index fda008b..f5a0632 100644 --- a/modules/capabilities/desktop-defaults.nix +++ b/modules/capabilities/desktop-defaults.nix @@ -118,7 +118,6 @@ unzip gimp dbeaver-bin - beekeeper-studio onlyoffice-desktopeditors obsidian ];