Johannes Kirschbauer
9af20ad8b5
chore(inventory/instances): don't eagerly test the service modules _class
2025-04-08 20:30:35 +02:00
Johannes Kirschbauer
f7d5a529aa
chore(inventory/services): dont check _class of legacy clanModules.
...
Let the module system handle the error. Once we shift to deferred
modules, things get more complicated and we cannot check the module
class eagerly
2025-04-08 20:30:33 +02:00
hsjobeki
da164696ea
Merge pull request 'doc(inventory): document experimental settingsExtend' ( #3207 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3207
2025-04-08 18:10:04 +00:00
brianmcgee
f0bd7ecad6
Merge pull request 'chore: remove data-mesher from devshell' ( #3239 ) from remove-data-mesher-from-devshell into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3239
2025-04-08 18:05:51 +00:00
Johannes Kirschbauer
821264fe2e
fix(getModulesSchema): forward argument to evalClanModules
2025-04-08 19:53:20 +02:00
Brian McGee
f418ba0755
chore: remove data-mesher from devshell
2025-04-08 19:51:11 +02:00
Michael Hoang
a503c92c3e
Merge pull request 'flake-parts: ensure flake.darwinConfigurations is mergeable' ( #3244 ) from push-zurymrrrxwur into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3244
2025-04-08 17:20:16 +00:00
renovate[bot]
ce023a9fe0
chore(deps): lock file maintenance
2025-04-08 17:10:45 +00:00
Michael Hoang
1079fb7812
flake-parts: remove unnecessary mkSubmoduleOptions
...
This is no longer necessary as of https://github.com/NixOS/nixpkgs/pull/156533 .
2025-04-08 19:03:29 +02:00
Michael Hoang
88669ec19c
flake-parts: ensure flake.darwinConfigurations is mergeable
...
We didn't run into issues previously for `nixosConfigurations` because
there is already a [flake-parts module] that creates the option inside
`flake`.
[flake-parts module]: https://github.com/hercules-ci/flake-parts/blob/main/modules/nixosConfigurations.nix
2025-04-08 19:03:29 +02:00
renovate[bot]
e781741023
fix(deps): update tanstack-query monorepo to v5.72.1
2025-04-08 16:50:21 +00:00
renovate[bot]
d3fee5000a
chore(deps): update nixpkgs digest to b0b4b5f
2025-04-08 16:10:09 +00:00
Mic92
b7cf63344c
Merge pull request 'sops: fix compatibility with new format' ( #3242 ) from directory-context into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3242
2025-04-08 16:05:43 +00:00
Jörg Thalheim
259983c99f
bump disko to fix quoting issue
2025-04-08 17:45:48 +02:00
Jörg Thalheim
57203c3d15
sops: fix compatibility with new format
...
The new format can have null values now.
2025-04-08 17:44:23 +02:00
DavHau
96db83a08b
inventory tests: generate vars for dummy test
2025-04-08 21:06:23 +07:00
DavHau
a493d53b84
data-mesher: generate vars for test vis update-vars.py
2025-04-08 20:54:11 +07:00
DavHau
d38d6ac167
data-mesher: use inventory test framework for vars
2025-04-08 20:54:11 +07:00
DavHau
968fe4b64e
inventory tests: add vars support
...
- Add support for leading vars
- Extend test to test for vars support
- Improve update-vars.py to take test name as argument
2025-04-08 20:54:11 +07:00
Johannes Kirschbauer
1b3ce7ebd4
docs(inventory): improve extendSettings docs
2025-04-08 15:46:13 +02:00
Johannes Kirschbauer
ce84c4cddb
chore(lib/modulesDocs): move dependency on clan-core and pkgs into function args
...
This is a good idea, to make lib agnostic from clan-core
The next step could be to rename the clan-core argument name
Or to explizitly pass the actual dependencies, instead of everything in
clan-core
2025-04-08 15:30:49 +02:00
Johannes Kirschbauer
97049d187c
doc(inventory): document experimental settings vendoring
2025-04-08 15:24:12 +02:00
renovate[bot]
39942ab3b4
chore(deps): update sops-nix digest to 69d5a5a
2025-04-08 12:50:12 +00:00
hsjobeki
411440ef35
Merge pull request 'feat(inventory/instances): add extendSettings as argument to perInstance, perMachine' ( #3233 ) from hsjobeki/clan-core:role-settings into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3233
2025-04-08 12:46:44 +00:00
Johannes Kirschbauer
07e6df35a5
feat(inventory/instances): dont set module location to allow underlying error location to bubble up
2025-04-08 14:36:29 +02:00
renovate[bot]
8da94a59bf
chore(deps): update data-mesher digest to 302252a
2025-04-08 12:10:12 +00:00
Mic92
8fad1df70b
Merge pull request 'directory-context' ( #3234 ) from directory-context into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3234
2025-04-08 12:09:36 +00:00
Jörg Thalheim
f008da9472
inventory: don't loose string context of directory
2025-04-08 13:50:27 +02:00
Johannes Kirschbauer
4913d2db87
feat(inventory/instances): add extendSettings as argument to perInstance, perMachine
2025-04-08 13:15:06 +02:00
Mic92
8fe56def2b
Merge pull request 'user-password: fix variables beeing incorrect' ( #3229 ) from user-password into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3229
2025-04-08 10:16:15 +00:00
Mic92
dc6de67ed7
Merge pull request 'docs-errata' ( #3161 ) from docs-errata into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3161
2025-04-08 10:00:53 +00:00
Brian McGee
9d6dfbd3e9
fix(docs): add the requirement to export clan.templates in flake outputs to migration guide
2025-04-08 10:44:36 +01:00
Brian McGee
0c7cf305e2
fix(docs): tighten up validation for meta.name and improved description
2025-04-08 10:44:35 +01:00
Brian McGee
7493ab3e59
fix(docs): correct flake sample in migration guide
...
diff --git a/docs/site/manual/migration-guide.md b/docs/site/manual/migration-guide.md
index 551a3ef0..38be9a0e 100644
--- a/docs/site/manual/migration-guide.md
+++ b/docs/site/manual/migration-guide.md
@@ -77,13 +77,18 @@ For the provide flake example, your flake should now look like this:
```nix
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+
+ inputs.clan-core = {
+ url = "git+https://git.clan.lol/clan/clan-core ";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
- outputs = { self, nixpkgs, ... }:
+ outputs = { self, nixpkgs, clan-core, ... }:
let
clan = clan-core.lib.buildClan {
self = self; # this needs to point at the repository root
specialArgs = {};
- inventory.meta.name = "NEEDS_TO_BE_UNIQUE"; # TODO: Changeme
+ meta.name = throw "Change me to something unique";
machines = {
berlin = {
2025-04-08 10:44:33 +01:00
Jörg Thalheim
aa8f7bd6ac
user-password: fix variables beeing incorrect
2025-04-08 09:37:05 +00:00
Jörg Thalheim
6dc0f6b91d
user-password: fix variables beeing incorrect
2025-04-08 11:36:43 +02:00
Mic92
87f7bd5651
Merge pull request 'user-password: migrate to vars' ( #3227 ) from user-password into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3227
2025-04-08 08:44:32 +00:00
Jörg Thalheim
9436a451f7
installation: use networkd everywhere
2025-04-08 10:33:48 +02:00
Jörg Thalheim
76c7858d3f
user-password: migrate to vars
2025-04-08 10:16:59 +02:00
DavHau
9a34977842
inventory tests: generalize update-vars.py
...
... and move to pkgs/scripts/
2025-04-08 07:45:30 +00:00
Michael Hoang
562b611193
Merge pull request 'build-clan: support constructing darwinConfigurations' ( #3115 ) from mac into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3115
2025-04-08 07:44:09 +00:00
Michael Hoang
67745e1b27
tests: add --show-trace to nix-unit tests
2025-04-08 08:53:29 +02:00
Michael Hoang
72ed0e258a
cli: don't update macOS machines
2025-04-08 08:53:29 +02:00
Michael Hoang
6de4735c81
build-clan: support constructing darwinConfigurations
2025-04-08 08:53:29 +02:00
Michael Hoang
66e4c41142
lib/jsonschema: fix enum support
2025-04-08 08:53:27 +02:00
Michael Hoang
94c7834ac7
flake: add nix-darwin
2025-04-08 07:39:49 +02:00
renovate[bot]
e05da71e68
chore(deps): update typescript-eslint monorepo to v8.29.1
2025-04-07 17:20:17 +00:00
DavHau
1665b777ec
data-mesher: use new test framework
2025-04-07 20:43:19 +07:00
DavHau
b9e1b109a8
inventory tests: improve framework to set better defaults
2025-04-07 19:58:53 +07:00
DavHau
60133015f5
add CLAN_NO_COMMIT env var to disable committing
...
This is required when calling vars generators for generating vars for
tests
2025-04-07 18:59:19 +07:00