Johannes Kirschbauer
2b392866d6
chore(buildClan): remove dependency on clan-core in the lib function
2025-04-02 09:49:54 +02:00
Johannes Kirschbauer
11701d5607
feat(lib/buildClan): turn lib/build-clan into a 'buildClanModule' with sub-features such as 'buildClan' and 'flakePartsModule'
2025-04-01 15:39:12 +02:00
Johannes Kirschbauer
f2e89d27fe
feat(lib/inventory): use clanLib instead of clan-core as internal specialArg. This has the benefit of beeing more narrow scoped.
2025-03-30 17:07:09 +02:00
Johannes Kirschbauer
06dd2ebf8c
feat(lib/modules): remove dependency on self
2025-03-30 16:12:01 +02:00
Johannes Kirschbauer
40740860c0
feat(lib): init callLib; helper to bootstrap clanLib
2025-03-30 16:11:04 +02:00
Johannes Kirschbauer
89bc39869c
chore(lib): prepare for refactoring into clanLib
2025-03-30 15:56:54 +02:00
lassulus
fe2cfd3b37
clan-cli: add a Flake class with caching
2025-02-02 11:52:36 +00:00
Johannes Kirschbauer
fca193073e
lib.values: init getPrio
...
This function can be used to get the priority of all values within a module
2024-12-04 17:37:23 +01:00
Johannes Kirschbauer
de4c6caf30
Ext/modules: expose module schemas
2024-11-21 17:02:34 +01:00
Johannes Kirschbauer
25fb899f64
Inventory: init external modules support
2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
d5c2c1af67
modules/frontmatter: init module interface as source of frontmatter
2024-11-15 20:04:06 +01:00
Jörg Thalheim
fb65e4730d
eval-clan-modules: don't re-import nixpkgs
2024-10-09 13:48:32 +02:00
Johannes Kirschbauer
bca5724f41
Init: eval clanmodule interface with roles
2024-10-07 21:08:28 +00:00
Johannes Kirschbauer
8fd09b8403
Add build-clan module
2024-08-03 12:05:09 +02:00
a-kenji
1a969d884e
lib: add fact loaders to clan lib
2024-07-02 11:34:26 +00:00
Johannes Kirschbauer
3777a4cf02
Add toml frontmatter description to jsonschema
2024-06-26 15:10:36 +02:00
Johannes Kirschbauer
9b0e2a87e8
ClanModules: Add docs and api to retrieve metadata
2024-06-25 21:17:01 +02:00
Johannes Kirschbauer
3aa7a6ee69
Inventory: move to lib.inventory
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
13c3169b41
lib: eval clan module as lib function
2024-06-24 15:47:25 +02:00
Qubasa
6908527ebd
Throw error on missing clanModule description or if description too long. Add xfce description.
2024-05-02 17:53:27 +02:00
Qubasa
a48df5b993
Add package function-schema and module-schema. Add check for module jsonschema.
2024-05-01 23:16:17 +02:00
Jörg Thalheim
e296a3019d
re-format with nixfmt
2024-03-17 19:48:49 +01:00
DavHau
bf176ad277
api/machines: allow importing extra modules
...
- add top-level option `clanImports` to clanCore
- clanImports can be set and checked as any other option
- buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions
- new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports
- to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return `clanImports` as part of the config
Still missing: get list of available modules
2023-10-25 16:36:30 +01:00
Jörg Thalheim
293e7f8ae6
drop unused findNixFiles function
2023-09-28 14:21:03 +02:00
DavHau
03808d9fbc
buildClan: fix missing argument clan
2023-09-02 18:24:34 +02:00
Jörg Thalheim
1d496c6363
buildClan: also import clanCore module
2023-08-30 16:41:50 +02:00
Jörg Thalheim
72768573db
drop non-existent clan modules
2023-08-29 22:30:33 +02:00
Jörg Thalheim
a4e182debf
clan template: reduce autogenerate code to a minimum
2023-08-29 13:54:06 +00:00
DavHau
7262208a4c
clanLib.jsonschema: move tests from pkgs/clan-cli
2023-08-09 16:05:33 +02:00
DavHau
9438a9eb5f
clan-config: move jsonschema lib to clanLib
2023-08-09 16:05:33 +02:00
lassulus
96067a789d
move modules into nixosModules, add autoimport
2023-08-02 10:24:01 +02:00