Files
AZ-NIX-SERVERS/hosts/common/default.nix
T
m3ta-chiron b16bb9efa7 fix: drop codex from t3code wrapper to avoid Rust build
- Filter codex out of providerPackages in the llm-agents t3code and t3code-desktop wrappers (new overlay t3code-without-codex)
- Apply the overlay after mkLlmAgentsOverlay and before t3code-agent-identity
- Only the cheap wrapper is rebuilt; t3code-unwrapped still comes from the numtide cache
2026-11-15 12:48:18 +01:00

90 lines
2.6 KiB
Nix

# Common configuration for all hosts
{
config,
pkgs,
lib,
inputs,
outputs,
system,
...
}: {
imports = [
./extraServices
./users
./ports.nix
inputs.m3ta-nixpkgs.nixosModules.ports
inputs.home-manager.nixosModules.home-manager
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs outputs system;
videoDrivers = config.services.xserver.videoDrivers or [];
};
};
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
inputs.nur.overlays.default
inputs.m3ta-nixpkgs.overlays.default
(outputs.lib.mkLlmAgentsOverlay system)
# codex aus dem t3code-Wrapper-PATH entfernen (sonst Rust-Build).
outputs.overlays.t3code-without-codex
# Wraps pkgs.llm-agents.t3code* with the agents' m3ta-chiron identity
# (same as AZ-NIX-CLIENTS). Must come AFTER mkLlmAgentsOverlay.
inputs.m3ta-home.overlays.t3code-agent-identity
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
};
nix = {
settings = {
experimental-features = "nix-command flakes";
# Binärcache von numtide/llm-agents.nix (claude-code, opencode, t3code,
# codex ...). Ohne ihn werden diese Pakete lokal gebaut (codex = Rust).
substituters = ["https://cache.numtide.com"];
trusted-public-keys = ["niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="];
trusted-users = [
"root"
"sascha.koenig"
"jannik.mueller"
]; # Set users that are allowed to use the flake command
};
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
optimise.automatic = true;
registry =
(lib.mapAttrs (_: flake: {inherit flake;}))
((lib.filterAttrs (_: lib.isType "flake")) inputs);
nixPath = ["/etc/nix/path"];
};
# AZ-NIX-9aj: nicht-interaktive Aktivierung (Colmena-apply, Wartung).
# Vertretbar: sshd key-only auf Port 2022, PasswordAuthentication off.
security.sudo.wheelNeedsPassword = false;
}