my nix configs
  • Nix 79.1%
  • Python 14.4%
  • HTML 4.7%
  • Shell 1.8%
Find a file
Harald Hoyer 0c262db0eb feat(overlay): track unstable llama-cpp (b9608) for Gemma4 MTP
The CUDA build (amd) used the stable-channel llama-cpp (b9190), which
predates the Gemma4 MTP draft architecture ('gemma4-assistant',
llama.cpp PR #23398, first shipped in b9549). As a result gemma-4-31b's
--spec-type draft-mtp aborted at load with "unknown model architecture:
'gemma4-assistant'".

Inherit llama-cpp from the unstable channel (b9608) so the CUDA build
gets the new draft arch, and drop the explicit b9264 src pin on
llama-cpp-rocm so the ROCm build (halo) tracks the same base. Both now
resolve to b9608; bf16 KV cache avoids the Q8-KV 0%-acceptance issue
noted in the PR.
2026-06-19 18:31:37 +02:00
.secrets sgx/garmy: Auto-Relogin scharf schalten (sops-Credentials) 2026-06-15 13:22:40 +02:00
config feat: add ponytail skills for minimal-solution discipline 2026-06-15 20:47:22 +02:00
homes fix(hm): reference existing wezterm background in rialo@amd 2026-06-19 09:39:57 +02:00
lib chore: statix fix 2026-04-20 10:09:24 +02:00
modules feat(llm): enable MTP speculative decoding for gemma-4-31b on amd 2026-06-19 17:22:56 +02:00
overlays feat(overlay): track unstable llama-cpp (b9608) for Gemma4 MTP 2026-06-19 18:31:37 +02:00
packages garmy: Divergenz-Check von 'selber Tag' auf ±3 Tage erweitern 2026-06-17 07:59:52 +02:00
shells/default feat(packages): add ds4 DeepSeek V4 Flash inference engine 2026-06-08 22:19:19 +02:00
systems max: Story-Pool auf 10 hochdrehen 2026-06-18 21:35:23 +02:00
.gitattributes remove required from .gitattributes 2024-11-29 15:45:57 +01:00
.gitignore chore: update .gitignore to include .direnv 2025-03-20 09:56:10 +01:00
.sops.yaml feat(nix): authenticate daemon builtin GitHub fetches on keyed hosts 2026-06-03 22:57:19 +02:00
CLAUDE.md chore: add notes about fmt and statix 2026-04-20 10:06:26 +02:00
flake.lock chore: flake update 2026-06-19 09:27:59 +02:00
flake.nix feat(max): Story-Backend (claude -p) + Overlay nutzen 2026-06-18 14:37:38 +02:00
README.md docs: update README with project structure and instructions 2025-03-20 09:43:18 +01:00

NixOS Configuration

A modular NixOS configuration setup for multiple systems.

Project Structure

  • modules/: Reusable NixOS/Darwin modules
    • common.nix: Common module imports and definitions
    • nixos/: NixOS-specific modules
      • home/: Home Manager integration for NixOS
      • nix/: Nix package manager configuration
      • nix-ld/: Dynamic linking support
      • network/: Network configuration modules
        • resolved/: DNS resolution configuration
      • security/: Security-related modules
        • ssh-host-keys/: SSH host key management
      • services/: Service configuration modules
        • base/: Basic system configuration
        • gui/: Graphical interface setup
        • homeprinter/: Home printer support
        • podman/: Container runtime
        • secureboot/: Secure boot configuration
      • sgx/: Intel SGX support
        • aesmd_dcap/: SGX AESMD DCAP service
        • pccs/: SGX Provisioning Certificate Caching Service
      • system/: System configuration modules
        • auto-upgrade/: Automatic system upgrades
        • limits/: System resource limits
        • zram/: ZRAM swap configuration
      • tools/: Common tools configuration
        • direnv/: Direnv integration
        • git/: Git configuration
      • user/: User account configuration
      • virtualization/: Virtualization support
    • home/: Home Manager modules
      • cli-apps/: Command-line applications
      • gui/: GUI application configuration
      • tools/: User tools configuration
      • user/: User preferences
    • darwin/: Darwin-specific modules
      • home/, nix/, security/, etc.
  • systems/: Individual system configurations
    • x86_64-linux/: Linux systems on x86_64
    • aarch64-linux/: Linux systems on ARM
    • x86_64-darwin/: macOS systems on x86_64
    • aarch64-darwin/: macOS systems on ARM
  • homes/: Home Manager configurations for each user/system
  • lib/: Helper functions and utilities
  • overlays/: Nixpkgs overlays
  • packages/: Custom packages

Using the Configurations

Install a system via nixos-anywhere

$ nix run github:numtide/nixos-anywhere -- \
  --flake 'git+https://git.hoyer.xyz/harald/nixcfg'.#hostname \
  root@hostname --no-reboot --tty -i $HOME/.ssh/id_ed25519
... enter disk password
$ ssh -t root@hostname systemd-cryptenroll /dev/luksdev --wipe-slot=tpm2 --tpm2-device=auto --tpm2-pcrs=1,15

Update NixOS system

$ nixos-rebuild --use-remote-sudo -L --show-trace --refresh --flake git+https://git.hoyer.xyz/harald/nixcfg boot

Update macOS system

$ darwin-rebuild -L --show-trace --refresh --flake git+https://git.hoyer.xyz/harald/nixcfg switch

Update home-manager configuration

$ nix --refresh run 'git+https://git.hoyer.xyz/harald/nixcfg' -- \
  switch -b backup --flake 'git+https://git.hoyer.xyz/harald/nixcfg'