build: add bazel rust workflow

This commit is contained in:
2026-08-30 23:10:42 -04:00
parent ba4fbb984a
commit db9851f4bb
13 changed files with 2051 additions and 0 deletions

View File

@@ -55,12 +55,14 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# TODO: deprecate / remove
# Agent-ergonomic CLI for Gitea, with a home-manager module for the agent context.
gitea-axi = {
url = "git+https://git.alexion.dev/alexion/gitea-axi";
inputs.nixpkgs.follows = "nixpkgs";
};
# TODO: deprecate / remove
# Personal agent skills, packaged as per-skill derivations with a home-manager module.
skills = {
url = "git+https://git.alexion.dev/alexion/skills";
@@ -75,7 +77,30 @@
outputs =
{ self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgsDefault = [ pkgs.bazel ];
pkgsRust = with pkgs; [
cargo
clippy
rust-analyzer
rustc
rustfmt
];
mkShell = packages:
pkgs.mkShell {
packages = pkgsDefault ++ packages;
};
in
{
devShells.${system} = {
default = mkShell [ ];
rust = mkShell pkgsRust;
};
nixosConfigurations = (import ./src/dotfiles {
inherit inputs self;
lib = nixpkgs.lib;