Commit Graph

182 Commits

Author SHA1 Message Date
Jörg Thalheim
c80c5dcdca deprecate passing in system with nixosConfiguration
we have this information in both hardware-configuration.nix and factor,
so we don't want to pass this in from the outside.
2024-10-09 11:56:36 +02:00
Jörg Thalheim
83f6485abc move nixos-facter imports to clanCore 2024-10-09 11:56:36 +02:00
Jörg Thalheim
fd114ab0f9 import nixos facter by default 2024-10-09 11:36:03 +02:00
Johannes Kirschbauer
0fec60a36c Inventory/schema: disable warning until fully migrated 2024-10-08 19:31:27 +02:00
Johannes Kirschbauer
2092101581 Inventory/enabled: add eval test 2024-10-08 12:24:57 +02:00
Johannes Kirschbauer
f9387df76d Inventory/enable: dont include disabled services 2024-10-08 12:24:57 +02:00
Johannes Kirschbauer
d4865d10e4 Inventory/interface: add enable flag for service instances 2024-10-08 12:24:57 +02:00
Johannes Kirschbauer
8c15f58df6 Inventory/tests: add more eval smoke tests 2024-10-08 12:06:03 +02:00
Johannes Kirschbauer
a3f084f6f4 Init: inventory schema for role dependant interfaces 2024-10-08 11:38:15 +02:00
clan-bot
899bfde40c Merge pull request 'Fix: wrong path concat coercion' (#2219) from hsjobeki/clan-core:hsjobeki-main into main 2024-10-07 21:14:21 +00:00
Johannes Kirschbauer
bca5724f41 Init: eval clanmodule interface with roles 2024-10-07 21:08:28 +00:00
Johannes Kirschbauer
50f61979a5 Fix: update tests and error message 2024-10-07 23:04:30 +02:00
Johannes Kirschbauer
1d026f68ce Fix: modules wrong path coercion 2024-10-07 22:47:49 +02:00
Johannes Kirschbauer
d812445e90 Meta.name: not nullable, since deduped 2024-10-04 14:30:50 +02:00
Johannes Kirschbauer
71d3d03b43 Interfaces: unclutter meta interface, file conflict position tracking 2024-10-04 13:48:11 +02:00
Johannes Kirschbauer
4a469ed312 Inventory/tests: don't expect the default.nix to be imported anymore 2024-10-02 10:49:06 +02:00
Johannes Kirschbauer
0819562a0b Inventory/modules: use explicit roles only 2024-10-02 10:01:44 +02:00
Johannes Kirschbauer
de882cb02f Inventory: improve role imports 2024-10-02 10:01:44 +02:00
Johannes Kirschbauer
96b972d91d Docs: fixup links 2024-09-25 13:46:12 +02:00
Johannes Kirschbauer
21343e4032 Docs/inventory: add documentation for inventory attributes 2024-09-25 13:36:33 +02:00
Johannes Kirschbauer
053082c932 Docs/buildClan: add documentation descriptions 2024-09-25 13:33:46 +02:00
Johannes Kirschbauer
8e7e346b28 Docs: add top-level index, refactor according to diataxis 2024-09-22 18:39:13 +02:00
Johannes Kirschbauer
61efab995a Inventory: fixup imports to extraModules 2024-09-18 08:27:39 +02:00
Johannes Kirschbauer
7a4028660f Inventory: fix eval tests 2024-09-16 22:52:40 +02:00
Johannes Kirschbauer
56b76f9827 Inventory: docs improvements 2024-09-16 22:52:40 +02:00
Johannes Kirschbauer
c82c70e4a9 Inventory: check extraModules serilizable 2024-09-16 13:50:03 +00:00
Johannes Kirschbauer
ca79433aa9 CLI: use abstract schema to avoid module imports 2024-09-15 18:42:50 +02:00
Johannes Kirschbauer
1705ab757a Inventory: fix test in build-clan 2024-09-15 16:41:33 +00:00
Johannes Kirschbauer
e7c92d034d fixup! Inventory: add machines automatically from machines dir 2024-09-15 16:41:33 +00:00
Johannes Kirschbauer
55a25e69e2 Inventory: rename imports to extraModules 2024-09-15 16:41:33 +00:00
Johannes Kirschbauer
c21a265e21 Inventory: allow arbitrary imports from nix 2024-09-15 16:41:33 +00:00
Johannes Kirschbauer
fbf3be48dd Inventory: set {name,meta.name} automatically 2024-09-15 15:20:35 +02:00
Johannes Kirschbauer
9bbc720022 Inventory: eval test fixup 2024-09-15 14:10:33 +02:00
Johannes Kirschbauer
754aa2b54e Inventory: only declare the module namespace if any config is defined 2024-09-15 13:35:53 +02:00
Johannes Kirschbauer
7c0d87c5b1 ClanModules: make all module available to inventory 2024-09-13 17:18:20 +02:00
Qubasa
787599ebb6 clanCore: init machine_id_v3 2024-09-13 12:17:49 +02:00
a-kenji
f1b857f4ae Revert "Merge pull request 'machine_id_v2' (#2052) from Qubasa/clan-core:machine_id_v2 into main"
This reverts commit 68a72a4156, reversing
changes made to 7af3e80249.
2024-09-10 14:01:12 +02:00
Qubasa
a0b3275ed1 clanCore: init machineId and diskId v2 2024-09-09 15:51:31 +02:00
Qubasa
323010bb04 revert machine_id pull request 2024-09-06 21:38:50 +02:00
Qubasa
b16a53f510 clanCore: init machine_id.nix with clan.core.machine.{id,diskId} 2024-09-06 18:05:40 +02:00
Johannes Kirschbauer
fec7b3e120 Flake: nixos-facter-module with flake: false 2024-08-28 11:01:07 +02:00
Johannes Kirschbauer
732ba9d176 Template: fix flake-parts template 2024-08-27 11:27:26 +02:00
Jörg Thalheim
ed2975acea remove nixos-factor modules for now
I would like to get rid of blueprint before having this feature
2024-08-27 09:38:28 +02:00
Johannes Kirschbauer
c43599bfa0 Format 2024-08-26 09:05:01 +02:00
Johannes Kirschbauer
d3f8c4ec86 BuildClan: autoimport facter.json 2024-08-26 09:04:59 +02:00
Johannes Kirschbauer
59c18b8411 Inventory: add assertions, allow external references 2024-08-13 19:22:29 +02:00
a-kenji
16e6b690ad Fix: forward meta attributes in flake-parts module
This fixes building machines with the flake-parts module.

Since the inventory merges the machines, the `clan.core.meta` attribute
is now a submodule and conditionally imported.

Also drops the following attributes:
- clan.core.meta.icon
- clan.core.meta.description

In favor of specifying them inside the inventory.

This doesn't use `mkRemovedOptionsModule`, because in our case it would
cause infinite recursion.
2024-08-07 12:19:17 +00:00
a-kenji
10f7509a5f Revert "Fix: forward meta attributes in flake-parts module"
This reverts commit e7c6333e06.

The propagated `self` attribute can be an error in non `flake-parts`
modules.
2024-08-07 10:40:36 +00:00
a-kenji
e7c6333e06 Fix: forward meta attributes in flake-parts module
This fixes building machines with the flake-parts module.

Since the inventory merges the machines, the `clan.core.meta` attribute
is now a submodule and conditionally imported.

Also drops the following attributes:
- clan.core.meta.icon
- clan.core.meta.description

In favor of specifying them inside the inventory.

This doesn't use `mkRemovedOptionsModule`, because in our case it would
cause infinite recursion.
2024-08-07 09:33:49 +00:00
Johannes Kirschbauer
a4bbdcb010 Clan-core: Rename clanName within Machines 2024-08-06 12:21:46 +02:00