Skip to content

Commit bb9036c

Browse files
committed
ci: tempfix for cachix deploy.json
Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
1 parent e9658e5 commit bb9036c

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ jobs:
3939
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
4040
run: |
4141
nix develop .#ci --command bash -c "nix-build-all --systems x86_64-linux --override-input flake . --out-link flake --cachix-cache spearman4157"
42+
nix build .#packages.x86_64-linux.deploy
43+
cat result

flake.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
flake-parts,
6666
git-hooks,
6767
systems,
68+
self,
6869
...
6970
}@inputs:
7071
flake-parts.lib.mkFlake { inherit inputs; } {
@@ -179,6 +180,16 @@
179180
'';
180181
};
181182

183+
packages.deploy = pkgs.writeText "deploy.json" (
184+
builtins.toJSON {
185+
agents = (
186+
lib.mapAttrs (n: v: v.config.system.build.toplevel) (
187+
lib.filterAttrs (n: v: v.config.services.cachix-agent.enable) self.nixosConfigurations
188+
)
189+
);
190+
}
191+
);
192+
182193
# Installation hooks need to setup manually in each devshell.
183194
pre-commit.check.enable = true;
184195
pre-commit.settings.hooks = {

0 commit comments

Comments
 (0)