Commit Graph

14 Commits

Author SHA1 Message Date
Agustin Mista
82ba09e2a3 nixos/llama-cpp: fix obsolete port option warning 2026-06-12 21:42:13 +02:00
azahi
260d1c6c81 nixos/llama-cpp: switch to RFC42-style settings 2026-06-08 21:42:31 +03:00
Pascal Bach
676d8fc1bc nixos/llama-cpp: support models-preset
The new options allows specifying --models-preset via Nix.
2026-02-08 12:43:28 +01:00
Pascal Bach
97b35f6420 nixos/llama-cpp: add state and cache directory
This is required to allow automatic download from huggingface etc.

They are placed in LLAMA_CACHE which is now the cache directory.
2026-02-08 12:42:50 +01:00
agentelement
653f976dd4 llama-cpp: remove required models or modelsDir assertion 2026-02-01 21:03:09 -07:00
agentelement
f7f3858a24 llama-cpp: run nix fmt 2026-02-01 21:03:09 -07:00
agentelement
b84fe8afc2 llama-cpp: make models and modelsDir default null 2026-02-01 21:03:09 -07:00
agentelement
d05f1a02a1 llama-cpp: add support for --models-dir flag 2026-02-01 21:03:08 -07:00
NAHO
a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Raroh73
1f2c3812d4 nixos/llama-cpp: fix rocm support 2024-05-13 17:01:33 +02:00
Alex Martens
1dacec9bb9 nixos/llama-cpp: fix example flags 2024-03-26 19:32:13 -07:00
Alex Martens
bdb6849a32 nixos/llama-cpp: fix binary path 2024-03-17 16:48:51 -07:00
Alex Martens
d8bb8a6417 nixos/llama-cpp: init 2024-01-06 10:42:55 -08:00