renovate[bot]
b3970b5a9a
chore(deps): update data-mesher digest to 0328b8c
2025-04-18 08:00:13 +00:00
renovate[bot]
0245e0eea3
chore(deps): update data-mesher digest to b824c4f
2025-04-18 06:10:22 +00:00
renovate[bot]
24563f0b56
chore(deps): update treefmt-nix digest to 2550683
2025-04-18 06:00:14 +00:00
renovate[bot]
d27a9a442b
chore(deps): update dependency vite to v6.3.2
2025-04-18 05:00:15 +00:00
renovate[bot]
b25a376f90
chore(deps): update disko digest to 51d33bb
2025-04-18 02:10:10 +00:00
Michael Hoang
c263d68653
Merge pull request 'build-clan: fix constructing nix-darwin machines' ( #3345 ) from push-rnzmyrvqrqmv into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3345
2025-04-17 18:32:22 +00:00
Michael Hoang
40a3f6abce
build-clan: fix constructing nix-darwin machines
2025-04-17 20:23:54 +02:00
renovate[bot]
1aa392e5d3
fix(deps): update dependency @tanstack/solid-query to v5.74.4
2025-04-17 10:00:16 +00:00
renovate[bot]
e79e7e861a
chore(deps): update dependency vite to v6.3.1
2025-04-17 02:00:17 +00:00
Mic92
ff558615a5
Merge pull request 'Remove nix_shell_legacy' ( #3341 ) from nix_shell into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3341
2025-04-16 19:56:53 +00:00
Jörg Thalheim
f3512b853a
remove nix_shell_legacy
2025-04-16 21:03:58 +02:00
Mic92
a708ef3615
Merge pull request 'nix_shell' ( #3339 ) from nix_shell into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3339
2025-04-16 18:38:09 +00:00
Jörg Thalheim
435627d854
rename CLAN_STATIC_PROGRAMS -> CLAN_PROVIDED_PACKAGES
2025-04-16 18:27:01 +00:00
Jörg Thalheim
837789010e
rename nix_shell_legacy to nix_shell and run_cmd to nix_shell
...
Than it's more obvious that we need to migrate.
2025-04-16 18:27:01 +00:00
Mic92
ed123d2332
Merge pull request 'lib/jsonschema: make attrs required' ( #3335 ) from fricklerhandwerk/clan-core:required-attrs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3335
2025-04-16 18:26:46 +00:00
Mic92
46e56aec56
Merge pull request 'sunshine/moonlight/mumble: migrate to vars' ( #3338 ) from sunshine into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3338
2025-04-16 17:59:09 +00:00
Jörg Thalheim
9222574258
run_cmd: print what commands are allowed in if the current command is not in the allow list
2025-04-16 19:50:27 +02:00
Jörg Thalheim
4d4882ac7b
update_hardware_config: migrate from nix_shell to run_cmd
2025-04-16 19:32:40 +02:00
Jörg Thalheim
7e6e51ee1b
sort allowed-programs.json
2025-04-16 19:32:40 +02:00
Jörg Thalheim
3e8f3046ec
Host: migrate from nix_shell to run_cmd
2025-04-16 19:32:40 +02:00
Jörg Thalheim
1049cc6edd
mumble: fix certificate generator
...
no idea how this ever worked before.
2025-04-16 18:49:24 +02:00
Jörg Thalheim
16752e3e11
mumble: migrate to inventory
2025-04-16 18:49:24 +02:00
Jörg Thalheim
e956f2773e
mumble: remove duplicate nixos test
2025-04-16 18:49:24 +02:00
Jörg Thalheim
50eff54001
mumble: migrate to vars
2025-04-16 18:49:24 +02:00
Jörg Thalheim
7cd36b043d
update-vars: don't print private key
2025-04-16 18:49:24 +02:00
Jörg Thalheim
5cf47fc635
update-vars: fallback to gitroot
2025-04-16 18:49:24 +02:00
Jörg Thalheim
c05827abcc
moonlight/sunshine: mark as unusuable outside of our VM
...
we depend on VM user, which only will work with our vm nixos module
2025-04-16 17:48:09 +02:00
Jörg Thalheim
bb7617fe2a
migrate moonlight/sunshine to vars
2025-04-16 17:48:09 +02:00
Valentin Gagarin
c8b305c437
fixup(jsonschema): test attrsOf submodules with valid value
2025-04-16 16:55:50 +02:00
Valentin Gagarin
af7915a564
lib/jsonschema: render defaults for submodule options
...
this relaxes the constraint that options of type `submodule` are always
required, and will render benign default values.
2025-04-16 16:55:46 +02:00
Mic92
4f6764804f
Merge pull request 'Move clan history subcommand to clan-vm-manager' ( #3336 ) from fix-update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3336
2025-04-16 13:14:34 +00:00
Jörg Thalheim
ec738fac30
impure-checks: limit number of workers to number of tests
2025-04-16 15:05:59 +02:00
Jörg Thalheim
0b4e896af3
migrate clan history to clan-vm-manager
...
this functionality is not really useful or used in clan-vm-manager and
therefore should live in the clan-vm-manager.
Not porting the test for now because we probably get rid of the clan-vm-manager soon in favour of the UI.
2025-04-16 14:51:37 +02:00
Jörg Thalheim
f4792109ec
Remove unused clan history update subcommand
2025-04-16 14:51:37 +02:00
Johannes Kirschbauer
15fe06fbf5
feat(jsonschema): add test for attrsof submodule
2025-04-16 14:48:49 +02:00
Valentin Gagarin
06e27c84de
lib/jsonschema: make attrs required
...
Before the change, modules of the form
```nix
{ lib, ... }: {
foo.bar = lib.mkOption {
# ...
};
}
```
or
```nix
{ lib, ... }: {
foo = lib.mkOption {
type = lib.types.subModule {
bar = lib.mkOption {
# ...
};
};
};
}
```
would not render with `foo` as required, which is not faithful to the
module system's semantics.
This change also tests that fields with defaults are not marked required.
Note that submodule options cannot have their defaults rendered to JSON
schema, and are therefore always marked required.
Architecturally this change is rather unfortunate: So far the checks for
defaults happen in the rendering (using `isDefault`) and not in the parsing,
but here we're adding a field to `$exportedModuleInfo`. While strictly
speaking we probably don't want to consider requiredness as module-level
information, it seems more reasonable to me to do it that way since at
the JSON schema level we have lost the distinction between `attrs`,
`attrsOf`, `submodule`.
2025-04-16 13:20:00 +02:00
renovate[bot]
3323d2aee8
chore(deps): update dependency vite to v6.3.0
2025-04-16 09:50:12 +00:00
hsjobeki
e5ac0eb425
Merge pull request 'init(clanServices): create a new folder for migrated modules (clanServices); add a module as example' ( #3334 ) from hsjobeki/clan-core:clanServices-init into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3334
2025-04-16 09:44:57 +00:00
Johannes Kirschbauer
101648d657
init(clanServices): add zerotier boilerplate to clanServices
2025-04-16 11:34:58 +02:00
hsjobeki
3f33cb7dee
Merge pull request 'feat(scripts/update-vars): expose all configurables as arguments {repo_root, test_dir, check_attr}' ( #3333 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3333
2025-04-16 08:50:44 +00:00
Johannes Kirschbauer
0bc2a068fe
chore(test/makeTestClan): document all options, remove magic specialArgs
2025-04-16 10:33:32 +02:00
Johannes Kirschbauer
7540242816
fix: rename folder lib/tests -> lib/test to be consistent with the attribute name
2025-04-16 10:04:31 +02:00
Johannes Kirschbauer
75932b7b7a
fixup: update commen in inventory example test
2025-04-16 10:02:20 +02:00
Johannes Kirschbauer
fa72ca3736
feat(scripts/update-vars): expose all configurables as arguments {repo_root, test_dir, check_attr}
2025-04-16 09:50:09 +02:00
hsjobeki
3865280619
Merge pull request 'revert vars: use writeShellApplication to shellcheck generators' ( #3331 ) from hsjobeki-patch-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3331
2025-04-16 07:44:53 +00:00
hsjobeki
b48b30de0e
revert db50ffc4b7
...
revert vars: use writeShellApplication to shellcheck generators
Cannot re-generate the vars for data-mesher or any of our tests anymore
cc @DavHau @Qubasa Can we work together to fix this.
I like shellchecking but if we loose the ability to add tests thats unfortunate
This is blocking: the new 'restic' and 'zerotier' migrations because we need to write integration tests from the beginning.
2025-04-16 07:14:25 +00:00
hsjobeki
3ef83deeeb
Merge pull request 'tests(clan): move test-inventory.nix to clanLib. And name it 'makeTestClan'' ( #3330 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3330
2025-04-15 16:27:09 +00:00
Johannes Kirschbauer
75c8541a8d
tests(clan): move test-inventory.nix to clanLib. And name it 'makeTestClan'
...
Exposing the function via clanLib makes it more accessible to clan modules
This allows each module to define its own test without needing to depend on any fileSystem path assumptions in the clan-core repo
2025-04-15 18:17:40 +02:00
hsjobeki
360f2fd7c9
Merge pull request 'feat(buildClan): expose {nixosModules,darwinModules} from clanInternals' ( #3329 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3329
2025-04-15 15:45:01 +00:00
Michael Hoang
19f990d61a
Merge pull request 'clanCore: remove clan.core.module' ( #3327 ) from push-vwpyxmnwqttw into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3327
2025-04-15 15:27:24 +00:00