Files
millerson-overlay.nix/flake.nix
T
alex 85bd7421de feat(llm): package upstream inference engines
Centralize engine pins, compiler wrappers and NPU packages.
Use upstream Kyojin v1.8.10 and drop the Thunderbolt dependency.

Offline evaluation passed; workstation builds remain pending.

Bead: nix-overlay-v09
2026-11-12 20:36:52 +03:00

109 lines
3.7 KiB
Nix

{
description = "Various packages for Nix";
inputs = {
nixpkgs-engine.url = "github:NixOS/nixpkgs/nixos-unstable";
hipfire = {
url = "github:warpfront/hipfire/v0.4.4";
inputs.nixpkgs.follows = "nixpkgs-engine";
};
nix-strix-halo = {
url = "github:hellas-ai/nix-strix-halo";
flake = false;
};
xrt-src = {
url = "git+https://github.com/Xilinx/XRT?ref=XRT-2.21&submodules=1";
flake = false;
};
xdna-driver-src = {
url = "git+https://github.com/amd/xdna-driver?ref=1.7&submodules=1";
flake = false;
};
pwilkin-llama-cpp = {
url = "github:pwilkin/llama.cpp/strix-halo";
inputs.nixpkgs.follows = "nixpkgs-engine";
inputs.flake-parts.follows = "flake-parts";
};
strix-llama-cpp = {
url = "github:halo-box/strix-llama.cpp";
inputs.nixpkgs.follows = "nixpkgs-engine";
inputs.flake-parts.follows = "flake-parts";
};
gufo.url = "github:mikealanni/gufo/fork-enhancements";
kyojin.url = "github:Yamz-Labs/kyojin/v1.8.10";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Newer nixpkgs whose toolchains are required by some packages:
# rustc >= 1.95 (mcp-gateway >= 3.4.0), go >= 1.26.3 (kubernetes-mcp-server >= 0.0.66).
nixpkgs-latest.url = "github:NixOS/nixpkgs/nixos-unstable";
# freetoken pins torch>=2.11,<2.12 and triton==3.6.0; current
# nixos-unstable only ships torch 2.13 / triton 3.7. Keep the previous
# nixpkgs revision for freetoken so its CUDA 12.9 / torch 2.11 stack is
# unchanged.
nixpkgs-torch211.url = "github:NixOS/nixpkgs/549bd84d6279f9852cae6225e372cc67fb91a4c1";
# nixos-unstable's Rust 1.98/1.99 cannot assemble AVX-VNNI intrinsics: every call to
# _mm512_dpbusd_epi32 / _mm512_dpwssd_epi32 / _mm*_dpwssd_avx_epi32 fails with
# "intrinsic signature mismatch for llvm.x86.avx512.vpdp*" against its LLVM 21.1.8. pdfcraft
# needs rustc >= 1.95 and pulls that instruction in through rten-gemm, pic-scale and zlib-rs, so
# it builds against stable's 1.95.0, which assembles them fine.
nixpkgs-rust195.url = "github:NixOS/nixpkgs/nixos-26.05";
systems.url = "github:nix-systems/default";
blueprint = {
url = "github:numtide/blueprint";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
bun2nix = {
# TODO(#4001): drop the branch pin once catalog support
# (nix-community/bun2nix#86) reaches the default branch.
url = "github:nix-community/bun2nix/staging-2.1.0";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
inputs.treefmt-nix.follows = "treefmt-nix";
inputs.flake-parts.follows = "flake-parts";
};
};
outputs =
{ self, ... }@inputs:
let
blueprintOutputs = inputs.blueprint {
inherit inputs;
};
in
blueprintOutputs
// {
overlays = {
hipfire = inputs.hipfire.overlays.default;
default = import ./overlays {
inherit (blueprintOutputs) packages;
};
shared-nixpkgs = import ./overlays/shared-nixpkgs.nix {
inherit (blueprintOutputs) mkPackagesFor;
};
};
nixosModules.hipfire = inputs.hipfire.nixosModules.default;
nixosModules.default = {
nixpkgs.overlays = [ self.overlays.default ];
};
homeManagerModules.default = {
imports = [
./modules/codex-oauth-proxy-hm.nix
./modules/open-code-review-hm.nix
./modules/pdfcraft-hm.nix
];
};
};
}