ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

use buildbot-nix.toml and `hydraJobs`

+28 -15
+3
buildbot-nix.toml
··· 1 + attribute = "hydraJobs" 2 + flake_dir = "." 3 + lock_file = "flake.lock"
+15
flake.nix
··· 19 19 outputs = 20 20 { 21 21 self, 22 + nixpkgs, 22 23 flake-parts, 23 24 systems, 24 25 git-hooks, ··· 44 45 flake = { 45 46 nixosModules.default = import ./runtime/module.nix; 46 47 makeHive = import ./runtime/makeHive.nix; 48 + hydraJobs = 49 + let 50 + inherit (inputs.nixpkgs) lib; 51 + in 52 + { 53 + packages = { 54 + inherit (self.packages.x86_64-linux) docs; 55 + } 56 + // lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: { 57 + inherit (self.packages.${system}) wire wire-small; 58 + }); 59 + 60 + tests = lib.filterAttrs (n: _: (lib.hasPrefix "vm" n)) self.checks.x86_64-linux; 61 + }; 47 62 }; 48 63 49 64 perSystem =
+10 -15
nix/checks.nix
··· 3 3 { 4 4 craneLib, 5 5 commonArgs, 6 - self', 7 6 ... 8 7 }: 9 8 { 10 - checks = { 11 - inherit (self'.packages) wire wire-small docs; 9 + checks.wire-nextest = craneLib.cargoNextest ( 10 + { 11 + partitions = 2; 12 + cargoArtifacts = craneLib.buildDepsOnly commonArgs; 13 + cargoNextestPartitionsExtraArgs = builtins.concatStringsSep " " [ 14 + "--no-tests pass" 15 + ]; 12 16 13 - wire-nextest = craneLib.cargoNextest ( 14 - { 15 - partitions = 2; 16 - cargoArtifacts = craneLib.buildDepsOnly commonArgs; 17 - cargoNextestPartitionsExtraArgs = builtins.concatStringsSep " " [ 18 - "--no-tests pass" 19 - ]; 20 - 21 - } 22 - // commonArgs 23 - ); 24 - }; 17 + } 18 + // commonArgs 19 + ); 25 20 }; 26 21 }