Commit Graph

624 Commits

Author SHA1 Message Date
lassulus
3ae82f3efc *: nix fmt 2024-12-02 15:14:40 +01:00
Johannes Kirschbauer
48b2788a7d Clan-core: automatically load disko.nix 2024-11-29 21:15:15 +01:00
DavHau
32332e8460 wifi: init as experimental module 2024-11-28 15:49:23 +07:00
Johannes Kirschbauer
0e556302c1 Clan-cli/api: list external modules 2024-11-21 17:04:35 +01:00
Johannes Kirschbauer
3ebda7c304 Ext/modules: expose module schemas 2024-11-21 17:02:34 +01:00
Johannes Kirschbauer
c7dcf9f517 inventory/eval.-tests: add explicit modules 2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
a1915fa26b jsonschema: dont export defaultText as default 2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
0d555df9ac Docs/inventory: ad-hoc loading of user modules 2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
55175e38cc Inventory/constraints: improve assertion messages 2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
cb0eb5f888 Inventory: improve check service message 2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
b3bcecd61c Inventory: init external modules support 2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
e5184eb5d4 chore(packages/schema): remove unused validation 2024-11-19 17:59:30 +01:00
Johannes Kirschbauer
cfe9dbf117 Docs/frontmatter: init automatic reference for frontmatter 2024-11-19 10:35:13 +01:00
Johannes Kirschbauer
9028027220 modules/frontmatter: init module interface as source of frontmatter 2024-11-15 20:04:06 +01:00
clan-bot
2061f38442 Merge pull request 'tests: minify test machines to decrease runtime' (#2401) from DavHau/clan-core:DavHau-dave into main 2024-11-13 13:44:59 +00:00
DavHau
c2a60dcbb6 tests: minify test machines to decrease runtime 2024-11-13 20:40:01 +07:00
Johannes Kirschbauer
686ef8f074 Docs: read roles only from inventory modules 2024-11-13 14:14:50 +01:00
Johannes Kirschbauer
0a59803616 Inventory/constraints: add id's to inventory constraints to make them more observable 2024-11-13 13:58:43 +01:00
Johannes Kirschbauer
22e164b869 Chore: remove unsued inventory example 2024-11-13 09:18:24 +01:00
Johannes Kirschbauer
722012ed55 Modules/constraints: init constraints checking for inventory compatible modules 2024-11-12 18:36:38 +01:00
Johannes Kirschbauer
5c63ce0058 jsonschema: migrate tests 2024-11-12 13:23:31 +01:00
Johannes Kirschbauer
0e2b519731 jsonschema: Add exportfield for module internals 2024-11-12 12:48:45 +01:00
Qubasa
95d3218bb6 clan: Re-add pkgsForSystem to configsPerSystem too 2024-11-11 23:20:27 +07:00
Qubasa
130aeb36b7 Revert "clan: Remove pkgsForSystem"
This reverts commit 382e27a20b.
2024-11-11 21:50:25 +07:00
Qubasa
6ac6d626df module.nix: add better explanation 2024-11-11 14:08:12 +00:00
Qubasa
382e27a20b clan: Remove pkgsForSystem 2024-11-11 14:08:12 +00:00
Johannes Kirschbauer
a67f42ee7a Jsonschema: clean up tests 2024-11-08 13:22:58 +01:00
Johannes Kirschbauer
4994b5acb5 Inventory: init inventory.tags for globally defined static and dynamic tags 2024-11-08 12:48:03 +01:00
Jörg Thalheim
05ea59d38a inventory: make sure we always define all roles, even if we don't have machines
this makes write writing modules easier

add missing roles assertions
2024-11-04 12:57:07 +01:00
danjujan
7a1e952c54 lib: fix typos 2024-10-29 12:37:34 +00:00
DavHau
b35d87888d build-clan: clean up unit test 2024-10-23 23:19:49 +07:00
Johannes Kirschbauer
7a4a4cea95 lib/jsonSchema: handle defaults for defaultText 2024-10-22 12:59:44 +02:00
Jörg Thalheim
7a3b176a00 refactor evalClanModules to accept a module instead of a modulename 2024-10-09 14:48:43 +02:00
Jörg Thalheim
da56927968 eval-clan-modules: don't re-import nixpkgs 2024-10-09 13:48:32 +02:00
Johannes Kirschbauer
2de5b83ed0 Schemas: fix clanModules eval 2024-10-09 13:38:19 +02:00
Johannes Kirschbauer
4e90ced9a8 Inventory: removed devshell input 2024-10-09 13:27:09 +02:00
Johannes Kirschbauer
08d26b9463 Inventory/schemas: move all schemas to legacyPackages 2024-10-09 13:27:09 +02:00
Johannes Kirschbauer
666f87e7e4 Inventory/schemas: use less schema versions 2024-10-09 13:27:09 +02:00
Jörg Thalheim
f825fa4b9b lib/inventory/tests: adapt imported module account 2024-10-09 12:32:04 +02:00
Jörg Thalheim
d537e1a91c remove machine settings.json 2024-10-09 12:08:23 +02:00
Jörg Thalheim
036918aae2 fix nixos machines without hostPlatform 2024-10-09 12:08:23 +02:00
Jörg Thalheim
9cdd55acf4 drop "system" argument from inventory 2024-10-09 12:07:58 +02:00
Jörg Thalheim
098a43eff9 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
808abdff0d move nixos-facter imports to clanCore 2024-10-09 11:56:36 +02:00
Jörg Thalheim
a613e391f6 import nixos facter by default 2024-10-09 11:36:03 +02:00
Johannes Kirschbauer
f9b7cd16d6 Inventory/schema: disable warning until fully migrated 2024-10-08 19:31:27 +02:00
Johannes Kirschbauer
534e217020 Inventory/enabled: add eval test 2024-10-08 12:24:57 +02:00
Johannes Kirschbauer
3d88c79fec Inventory/enable: dont include disabled services 2024-10-08 12:24:57 +02:00
Johannes Kirschbauer
6eed3894b3 Inventory/interface: add enable flag for service instances 2024-10-08 12:24:57 +02:00
Johannes Kirschbauer
52b26f6cda Inventory/tests: add more eval smoke tests 2024-10-08 12:06:03 +02:00