From d51948c3074585e9c73bed1bdd1928d0ca6f6bad Mon Sep 17 00:00:00 2001 From: moons Date: Sat, 29 Aug 2026 16:29:42 +0900 Subject: [PATCH] hugging face --- AGENTS.md | 2 ++ hosts/default.nix | 1 + modules/applications/huggingface-cli/home.nix | 4 ++++ modules/profiles/README.md | 4 ++++ modules/profiles/workload/machine-learning/meta.nix | 5 +++++ 5 files changed, 16 insertions(+) create mode 100644 modules/applications/huggingface-cli/home.nix create mode 100644 modules/profiles/workload/machine-learning/meta.nix diff --git a/AGENTS.md b/AGENTS.md index e5917ae..7bd9027 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -370,6 +370,7 @@ modules/profiles/ │ ├── camera/ │ ├── development/ │ ├── game/ +│ ├── machine-learning/ │ ├── personal/ │ ├── server/ │ └── remote-access/ @@ -627,6 +628,7 @@ A host registry may use a specification like this: "security.tpm-storage" "workload.development" "workload.game" + "workload.machine-learning" "workload.personal" ]; }; diff --git a/hosts/default.nix b/hosts/default.nix index 4d482d6..958209c 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -84,6 +84,7 @@ "security.fingerprint" "workload.development" "workload.game" + "workload.machine-learning" "workload.personal" "workload.camera" ]; diff --git a/modules/applications/huggingface-cli/home.nix b/modules/applications/huggingface-cli/home.nix new file mode 100644 index 0000000..ebbed39 --- /dev/null +++ b/modules/applications/huggingface-cli/home.nix @@ -0,0 +1,4 @@ +{ pkgs, ... }: +{ + home.packages = [ pkgs.python312Packages.huggingface-hub ]; +} diff --git a/modules/profiles/README.md b/modules/profiles/README.md index 91140a3..b06e023 100644 --- a/modules/profiles/README.md +++ b/modules/profiles/README.md @@ -38,6 +38,7 @@ required on every supported host. | `platform.vm` | UEFI QEMU NixOS guest with NFS client support | | `workload.development` | NixOS, macOS with Home Manager | | `workload.game` | NixOS, macOS | +| `workload.machine-learning` | NixOS with Home Manager | | `workload.personal` | NixOS, macOS with Home Manager | | `workload.remote-access` | NixOS, macOS | | `workload.camera` | NixOS | @@ -59,6 +60,9 @@ selects labwc. A daily-use macOS development machine can combine `interface.macos`, `workload.development`, and `workload.personal`. Hardware support does not implicitly select an interface or workload. +`workload.machine-learning` provides the Hugging Face Hub CLI for hosts used +to download and publish machine learning models and datasets. + `workload.personal` provides Pear Desktop on both NixOS and macOS. Home Manager enables performance improvements, synced lyrics, tracker blocking, the album color theme, and custom output-device selection while preserving user-owned diff --git a/modules/profiles/workload/machine-learning/meta.nix b/modules/profiles/workload/machine-learning/meta.nix new file mode 100644 index 0000000..97571e3 --- /dev/null +++ b/modules/profiles/workload/machine-learning/meta.nix @@ -0,0 +1,5 @@ +{ + description = "Machine learning tools"; + + includes = [ "applications.huggingface-cli" ]; +}