From 8bee7d93a7bb660a49a28ba00340737b7f3e5994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ryan4yin=20=7C=20=E4=BA=8C=E8=8A=B1?= Date: Sat, 3 Oct 2026 10:40:48 +0800 Subject: [PATCH] chore: bump agenix to 0.18.0 and follow nix-darwin/home-manager (#358) agenix was pinned to a May 2025 revision, so `just up` could never move it. Move to the 0.18.0 release tag and collapse its duplicate nix-darwin/home-manager lock nodes via follows. --- flake.lock | 81 +++++++++--------------------------------------------- flake.nix | 9 ++++-- 2 files changed, 20 insertions(+), 70 deletions(-) diff --git a/flake.lock b/flake.lock index 88b4abea..3d8f2ad4 100644 --- a/flake.lock +++ b/flake.lock @@ -2,25 +2,28 @@ "nodes": { "agenix": { "inputs": { - "darwin": "darwin", - "home-manager": "home-manager", + "darwin": [ + "nix-darwin" + ], + "home-manager": [ + "home-manager" + ], "nixpkgs": [ "nixpkgs" - ], - "systems": "systems" + ] }, "locked": { - "lastModified": 1747575206, - "narHash": "sha256-NwmAFuDUO/PFcgaGGr4j3ozG9Pe5hZ/ogitWhY+D81k=", + "lastModified": 1790530381, + "narHash": "sha256-/FjF9A8HVLVftjdmz1MPA2G0wSYWRaC628NTAsCqeyI=", "owner": "ryantm", "repo": "agenix", - "rev": "4835b1dc898959d8547a871ef484930675cb47f1", + "rev": "9353cb29366a8535ac9483065284785fd48012a2", "type": "github" }, "original": { "owner": "ryantm", + "ref": "0.18.0", "repo": "agenix", - "rev": "4835b1dc898959d8547a871ef484930675cb47f1", "type": "github" } }, @@ -94,28 +97,6 @@ "type": "github" } }, - "darwin": { - "inputs": { - "nixpkgs": [ - "agenix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1744478979, - "narHash": "sha256-dyN+teG9G82G+m+PX/aSAagkC+vUv0SgUw3XkPhQodQ=", - "owner": "lnl7", - "repo": "nix-darwin", - "rev": "43975d782b418ebf4969e9ccba82466728c2851b", - "type": "github" - }, - "original": { - "owner": "lnl7", - "ref": "master", - "repo": "nix-darwin", - "type": "github" - } - }, "devshell": { "inputs": { "nixpkgs": [ @@ -452,27 +433,6 @@ } }, "home-manager": { - "inputs": { - "nixpkgs": [ - "agenix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1745494811, - "narHash": "sha256-YZCh2o9Ua1n9uCvrvi5pRxtuVNml8X2a03qIFfRKpFs=", - "owner": "nix-community", - "repo": "home-manager", - "rev": "abfad3d2958c9e6300a883bd443512c55dfeb1be", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "home-manager", - "type": "github" - } - }, - "home-manager_2": { "inputs": { "nixpkgs": [ "nixpkgs" @@ -524,7 +484,7 @@ "bun2nix": "bun2nix", "flake-parts": "flake-parts", "nixpkgs": "nixpkgs", - "systems": "systems_2", + "systems": "systems", "treefmt-nix": "treefmt-nix" }, "locked": { @@ -976,7 +936,7 @@ "catppuccin": "catppuccin", "disko": "disko", "haumea": "haumea", - "home-manager": "home-manager_2", + "home-manager": "home-manager", "lanzaboote": "lanzaboote", "llm-agents": "llm-agents", "microvm": "microvm", @@ -1054,21 +1014,6 @@ "type": "github" } }, - "systems_2": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, "treefmt-nix": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index 4e24a844..8bf4a458 100644 --- a/flake.nix +++ b/flake.nix @@ -86,12 +86,17 @@ }; # secrets management + # Pinned to a release tag (not a branch) so `just up` cannot move it + # silently; bump deliberately when a new release is needed. agenix = { - # lock with git commit at May 18, 2025 - url = "github:ryantm/agenix/4835b1dc898959d8547a871ef484930675cb47f1"; + url = "github:ryantm/agenix/0.18.0"; # replaced with a type-safe reimplementation to get a better error message and less bugs. # url = "github:ryan4yin/ragenix"; inputs.nixpkgs.follows = "nixpkgs"; + # Reuse the flake's own nix-darwin / home-manager instead of agenix's + # pinned copies, collapsing duplicate lock nodes. + inputs.darwin.follows = "nix-darwin"; + inputs.home-manager.follows = "home-manager"; }; disko = {