Commit Graph

8 Commits

Author SHA1 Message Date
Johannes Kirschbauer
2e55028a1b services: move into clan submodule 2025-10-30 13:53:49 +01:00
Jörg Thalheim
b8d79c7fc2 fix: respect directory parameter in machines_dir
The machines_dir() function was hardcoding "machines" without considering
the directory parameter from buildClan/clan configuration. This caused
update-hardware-config and other commands to write files to the wrong
location when a custom directory was specified (e.g., directory = ./clan).

Solution:
1. Added relativeDirectory to inventoryClass in Nix, computed where both
   self and directory have consistent store paths during evaluation
2. Updated machines_dir() to use this pre-computed relative path from Nix
   via flake.select("clanInternals.inventoryClass.relativeDirectory")

Fixes: https://git.clan.lol/clan/clan-core/issues/2906
2025-10-27 16:37:07 +01:00
Johannes Kirschbauer
ae5efd9e2f inventory: fix path filter wrong length 2025-10-23 18:43:07 +02:00
Johannes Kirschbauer
90797ffa7d inventory: filter extraModules and remove unneded top-level options 2025-10-22 19:13:31 +02:00
Johannes Kirschbauer
da7ff9a40a modules/inventory: distributed services output reduce lexical scope 2025-10-22 18:47:30 +02:00
Johannes Kirschbauer
410d0d0532 modules: move input-mapping into inventoryClass submodule 2025-10-22 18:46:10 +02:00
Johannes Kirschbauer
a25d983c87 modules: move introspection module into inventoryClass submodule 2025-10-22 18:28:09 +02:00
Johannes Kirschbauer
843f55f844 modules: simplify inventoryClass module 2025-10-22 16:29:33 +02:00