File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 6565 flake-parts ,
6666 git-hooks ,
6767 systems ,
68+ self ,
6869 ...
6970 } @inputs :
7071 flake-parts . lib . mkFlake { inherit inputs ; } {
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 = {
You can’t perform that action at this time.
0 commit comments