- Run T3 Code as a systemd service on AZ-PRM-1, reachable on the NetBird interface (port 3773), with its token in the agenix secret t3code-env - Install claude-code, opencode, agent-lib and t3code in the sascha.koenig home profile on PRM-1 - Add an hourly agent-lib-sync timer that pulls skills and agents from agent-prod and links skills into ~/.claude/skills - Add the numtide llm-agents binary cache to nix settings so the agent packages are not built locally - Add a compat option shim for programs.nushell.loadSessionVariables until home-manager is upgraded to 26.11 - Update flake.lock inputs - Remove the manual wartungsmodus rollout guide from docs/deploy
85 lines
2.3 KiB
Nix
85 lines
2.3 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)
|
|
# 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;
|
|
}
|