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

change main to trunk

+50 -96
+1 -1
.github/labeler.yml
··· 41 41 - "tests/**" 42 42 43 43 release: 44 - - base-branch: "main" 44 + - base-branch: "trunk"
+1 -1
.github/workflows/autofix.yml
··· 3 3 on: 4 4 pull_request: 5 5 push: 6 - branches: ["main"] 6 + branches: ["trunk"] 7 7 8 8 permissions: 9 9 contents: read
+1 -1
.github/workflows/pages.yml
··· 2 2 name: "Pages" 3 3 on: 4 4 push: 5 - branches: [main] 5 + branches: [stable] 6 6 workflow_dispatch: 7 7 jobs: 8 8 pre-job:
+3 -3
README.md
··· 1 1 # wire 2 2 3 - ![Rust Tests Status](https://img.shields.io/github/actions/workflow/status/mrshmllow/wire/test.yml?branch=main&style=flat-square&label=Rust%20Tests) 4 - ![BuildBot Build & VM Test Status](https://img.shields.io/github/checks-status/mrshmllow/wire/main?style=flat-square&label=BuildBot%20Build%20%26%20VM%20Tests) 5 - ![Documentation Status](https://img.shields.io/github/actions/workflow/status/mrshmllow/wire/pages.yml?branch=main&style=flat-square&label=Documentation) 3 + ![Rust Tests Status](https://img.shields.io/github/actions/workflow/status/mrshmllow/wire/test.yml?branch=trunk&style=flat-square&label=Rust%20Tests) 4 + ![BuildBot Build & VM Test Status](https://img.shields.io/github/checks-status/mrshmllow/wire/trunk?style=flat-square&label=BuildBot%20Build%20%26%20VM%20Tests) 5 + ![Documentation Status](https://img.shields.io/github/actions/workflow/status/mrshmllow/wire/pages.yml?branch=trunk&style=flat-square&label=Documentation) 6 6 7 7 wire is a tool to deploy nixos systems. its usage is inspired by colmena however it is not a fork. 8 8
+2 -2
bench/run.nix
··· 33 33 sleep 30 34 34 echo "awake" 35 35 36 - wire_main=$(nix build --print-out-paths github:mrshmllow/wire#wire-small --no-link) 36 + wire_trunk=$(nix build --print-out-paths github:mrshmllow/wire#wire-small --no-link) 37 37 wire_args="apply test --path ./wire -vv --ssh-accept-host -p 10" 38 38 colmena_args="apply test --config ./colmena/hive.nix -v -p 10" 39 39 ··· 41 41 --export-markdown stats.md \ 42 42 --export-json run.json \ 43 43 "${lib.getExe self'.packages.wire-small} $wire_args" -n "wire@HEAD" \ 44 - "$wire_main/bin/wire $wire_args" -n "wire@main" \ 44 + "$wire_trunk/bin/wire $wire_args" -n "wire@trunk" \ 45 45 "${lib.getExe' inputs.colmena_benchmarking.packages.x86_64-linux.colmena "colmena"} $colmena_args" \ 46 46 -n "colmena@pinned" 47 47 '';
+3 -3
doc/.vitepress/config.ts
··· 20 20 21 21 footer: { 22 22 message: 23 - 'Released under the <a href="https://github.com/mrshmllow/wire/blob/main/COPYING">AGPL-3.0 License</a>.', 23 + 'Released under the <a href="https://github.com/mrshmllow/wire/blob/trunk/COPYING">AGPL-3.0 License</a>.', 24 24 copyright: "Copyright 2024-2025 wire Contributors", 25 25 }, 26 26 ··· 35 35 items: [ 36 36 { 37 37 text: "Changelog", 38 - link: "https://github.com/mrshmllow/wire/blob/main/CHANGELOG.md", 38 + link: "https://github.com/mrshmllow/wire/blob/trunk/CHANGELOG.md", 39 39 }, 40 40 ], 41 41 }, ··· 128 128 }, 129 129 130 130 editLink: { 131 - pattern: "https://github.com/mrshmllow/wire/edit/main/doc/:path", 131 + pattern: "https://github.com/mrshmllow/wire/edit/trunk/doc/:path", 132 132 text: "Edit this page on GitHub", 133 133 }, 134 134
-2
doc/snippets/default.nix
··· 1 1 { 2 - getting-started-hm = import ./getting-started/home.nix; 3 - getting-started-hm-flake = import ./getting-started/hm.flake.nix; 4 2 getting-started-nixos = import ./getting-started/configuration.nix; 5 3 getting-started-nixos-flake = import ./getting-started/nixos.flake.nix; 6 4 getting-started-cache = import ./getting-started/cache.nix;
+1 -1
doc/snippets/getting-started/configuration.nix
··· 1 1 {system, ...}: let 2 2 wire = import ( 3 3 # [!code ++] 4 - builtins.fetchTarball "https://github.com/mrshmllow/wire/archive/refs/heads/main.tar.gz" # [!code ++] 4 + builtins.fetchTarball "https://github.com/mrshmllow/wire/archive/refs/heads/trunk.tar.gz" # [!code ++] 5 5 ); # [!code ++] 6 6 in { 7 7 environment.systemPackages = [
+36 -34
doc/snippets/getting-started/flake-merged.nix
··· 2 2 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 3 3 inputs.wire.url = "github:mrshmllow/wire"; 4 4 5 - outputs = { 6 - self, 7 - nixpkgs, 8 - wire, 9 - ... 10 - } @ inputs: { 11 - wire = wire.makeHive { 12 - # Give wire our ninixosConfigurations 13 - inherit (self) nixosConfigurations; 5 + outputs = 6 + { 7 + self, 8 + nixpkgs, 9 + wire, 10 + ... 11 + }@inputs: 12 + { 13 + wire = wire.makeHive { 14 + # Give wire our ninixosConfigurations 15 + inherit (self) nixosConfigurations; 14 16 15 - meta = { 16 - # ... from above 17 - }; 17 + meta = { 18 + # ... from above 19 + }; 18 20 19 - node-a.deployment = { 20 - # ... 21 + node-a.deployment = { 22 + # ... 23 + }; 21 24 }; 22 - }; 23 25 24 - nixosConfigurations = { 25 - node-a = nixpkgs.lib.nixosSystem { 26 - system = "x86_64-linux"; 27 - specialArgs = {inherit inputs;}; 28 - modules = [ 29 - { 30 - nixpkgs.hostPlatform = "x86_64-linux"; 31 - } 32 - ]; 33 - }; 26 + nixosConfigurations = { 27 + node-a = nixpkgs.lib.nixosSystem { 28 + system = "x86_64-linux"; 29 + specialArgs = { inherit inputs; }; 30 + modules = [ 31 + { 32 + nixpkgs.hostPlatform = "x86_64-linux"; 33 + } 34 + ]; 35 + }; 34 36 35 - node-b = nixpkgs.lib.nixosSystem { 36 - system = "x86_64-linux"; 37 - specialArgs = {inherit inputs;}; 38 - modules = [ 39 - { 40 - nixpkgs.hostPlatform = "x86_64-linux"; 41 - } 42 - ]; 37 + node-b = nixpkgs.lib.nixosSystem { 38 + system = "x86_64-linux"; 39 + specialArgs = { inherit inputs; }; 40 + modules = [ 41 + { 42 + nixpkgs.hostPlatform = "x86_64-linux"; 43 + } 44 + ]; 45 + }; 43 46 }; 44 47 }; 45 - }; 46 48 }
-34
doc/snippets/getting-started/hm.flake.nix
··· 1 - { 2 - inputs = { 3 - # ... 4 - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 5 - home-manager = { 6 - url = "github:nix-community/home-manager"; 7 - inputs.nixpkgs.follows = "nixpkgs"; 8 - }; 9 - wire.url = "github:mrshmllow/wire"; # [!code ++] 10 - }; 11 - 12 - outputs = { 13 - # ... 14 - nixpkgs, 15 - home-manager, 16 - wire, # [!code ++] 17 - ... 18 - }: let 19 - system = "x86_64-linux"; 20 - pkgs = nixpkgs.legacyPackages.${system}; 21 - in { 22 - homeConfigurations.my-user = home-manager.lib.homeManagerConfiguration { 23 - inherit pkgs; 24 - modules = [ 25 - # ... 26 - { 27 - home.packages = [ 28 - wire.packages.${system}.wire # [!code ++] 29 - ]; 30 - } 31 - ]; 32 - }; 33 - }; 34 - }
-12
doc/snippets/getting-started/home.nix
··· 1 - {system, ...}: let 2 - wire = import ( 3 - # [!code ++] 4 - builtins.fetchTarball "https://github.com/mrshmllow/wire/archive/refs/heads/main.tar.gz" # [!code ++] 5 - ); # [!code ++] 6 - in { 7 - home.packages = [ 8 - wire.packages.${system}.wire # [!code ++] 9 - ]; 10 - 11 - # ... 12 - }
+1 -1
doc/tutorial/overview.md
··· 52 52 ### Speed 53 53 54 54 wire is about >2x faster than colmena deploying [identical large 55 - hives](https://github.com/mrshmllow/wire/blob/main/bench/run.nix). 55 + hives](https://github.com/mrshmllow/wire/blob/trunk/bench/run.nix). 56 56 57 57 | Command | Mean [s] | Min [s] | Max [s] | Relative | 58 58 | :--------------- | ---------------: | ------: | ------: | ----------: |
+1 -1
garnix.yaml
··· 1 1 builds: 2 2 exclude: ["checks.*.*"] 3 - branch: main 3 + branch: trunk