All my system configs and packages in one repo

ci: run nix flake check instead of building whole systems #1

merged opened by pluie.me targeting main from pluie/jj-yonqpyllylsw
Labels

None yet.

Participants 1
AT URI
at://did:plc:e4f33w5yt2m54tq6vsagpwiu/sh.tangled.repo.pull/3mck2vwbdjz22
+9 -9
Diff #0
+2 -5
.tangled/workflows/ci.yml
··· 17 17 18 18 environment: 19 19 CACHE_NAME: "pluiedev" 20 - FLAKE_ATTR: ".#nixosConfigurations.pappardelle.config.system.build.toplevel" 21 20 22 21 steps: 23 - - name: "Evaluate pappardelle" 24 - command: "nix eval --accept-flake-config $FLAKE_ATTR" 25 - - name: "Build pappardelle" 26 - command: "USER=root cachix watch-exec $CACHE_NAME -- nix build --accept-flake-config $FLAKE_ATTR" 22 + - name: "Check and cache Flake outputs" 23 + command: "USER=root cachix watch-exec $CACHE_NAME -- nix flake check --accept-flake-config $FLAKE_ATTR"
+7 -4
flake.nix
··· 74 74 hjem-ctp = import ./modules/hjem-ctp; 75 75 }; 76 76 77 - # This is highly advised, and will prevent many possible mistakes 78 - checks = builtins.mapAttrs ( 79 - _: deployLib: deployLib.deployChecks inputs.self.deploy 80 - ) inputs.deploy-rs.lib; 77 + checks = 78 + let 79 + deployChecks = builtins.mapAttrs ( 80 + _: deployLib: deployLib.deployChecks inputs.self.deploy 81 + ) inputs.deploy-rs.lib; 82 + in 83 + deployChecks // inputs.self.packages; 81 84 }; 82 85 83 86 perSystem =

History

1 round 0 comments
sign up or login to add to the discussion
pluie.me submitted #0
1 commit
expand
ci: run nix flake check instead of building whole systems
1/1 success
expand
expand 0 comments
pull request successfully merged