DavHau
3d2ede9f8e
refactor: remove Machine.vars_generators() method
...
Replace all calls to machine.vars_generators() with direct calls to
Generator.generators_from_flake() to make the dependency more explicit
and remove unnecessary indirection.
This reduces coupling to the Machine class, making the codebase more
modular and easier to refactor in the future.
2025-07-05 15:26:31 +07:00
renovate[bot]
3934ca6908
chore(deps): update disko digest to da6109c
2025-07-04 16:50:11 +00:00
Mic92
44312657aa
Merge pull request 'Qubasa-hsjobeki/bump-nixpkgs' ( #4205 ) from Qubasa-hsjobeki/bump-nixpkgs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4205
2025-07-04 16:47:23 +00:00
Jörg Thalheim
e383a8ddf4
zerotierone: disable tests on macos
2025-07-04 18:39:01 +02:00
Jörg Thalheim
c5bc1a225d
terminate_process_group: also properly yield iterator when we return early
2025-07-04 18:39:01 +02:00
Jörg Thalheim
3e2459fa40
migrate all projects to python 3.13 linting
2025-07-04 18:39:01 +02:00
Jörg Thalheim
e8247533a9
clan-cli: handle None in union types to prevent TypeError
...
Add comprehensive test coverage for union types with None to prevent
regression of the issubclass() TypeError that was occurring when
checking if None is in a union type.
2025-07-04 18:39:01 +02:00
Jörg Thalheim
cb89457731
migrate all projects to python 3.13 linting
2025-07-04 18:39:01 +02:00
Mic92
d8a658dbce
Merge pull request 'change install test to run clan outside of the VM' ( #3906 ) from vm-test into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3906
2025-07-04 15:17:14 +00:00
Qubasa
0d1e1d9796
treefmt/ruff: Set python lint version to 3.13. Fix all new lints coming up.
2025-07-04 17:11:31 +02:00
Johannes Kirschbauer
69b9187598
Chore: bump nixpkgs
2025-07-04 17:11:31 +02:00
Jörg Thalheim
15b0a84314
nixoTestLib: split setting up function for port-forwarding and setuping up flake
2025-07-04 16:56:42 +02:00
Michael Hoang
fecbb1f017
Merge pull request 'clanServices/wifi: fix autoConnect setting not doing anything' ( #4204 ) from push-msokoouryrwq into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4204
2025-07-04 14:33:49 +00:00
Michael Hoang
2b6fc723cc
clanServices/wifi: fix autoConnect setting not doing anything
2025-07-05 00:05:48 +10:00
pinpox
3df848c42c
Merge pull request 'Re-introduce state-version option' ( #4179 ) from state-version-option-again into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4179
2025-07-04 14:02:05 +00:00
Jörg Thalheim
f24e1beb98
only override identify/host_key_check in a single place
2025-07-04 14:36:05 +02:00
Jörg Thalheim
3d83017acd
make host key check an enum instead of an literal type
...
this is more typesafe at runtime.
2025-07-04 14:36:05 +02:00
Jörg Thalheim
7f744079a6
nixosTestLib: use xargs for copying store inputs
2025-07-04 14:36:05 +02:00
Jörg Thalheim
4775f2b473
nixosTestLib: substitute dependencies on tools in
2025-07-04 14:36:05 +02:00
Jörg Thalheim
764cd54ee5
nixosTestLib: fix various linting issues
2025-07-04 14:36:05 +02:00
Jörg Thalheim
a58e128b3a
inline create_test_machine again
2025-07-04 14:36:05 +02:00
Jörg Thalheim
81774c4ac4
setup_nix_in_nix: use cp intead of shutil
...
it's faster and handles symlinks
2025-07-04 14:36:05 +02:00
Jörg Thalheim
f5b54443da
move nixosTestLib to pkgs/testing
2025-07-04 14:36:05 +02:00
Jörg Thalheim
3059f10da3
move setup_nix_in_nix into nixos_test_lib
2025-07-04 14:36:02 +02:00
Jörg Thalheim
63397a7c8b
share more code between installation and update test
2025-07-04 14:14:28 +02:00
Jörg Thalheim
0bd66be152
add -i option to update-hardware-config
2025-07-04 14:14:28 +02:00
Jörg Thalheim
d9da9e4676
add port_utils module for installation testions
2025-07-04 14:14:28 +02:00
Jörg Thalheim
fe633d9c09
bump clan-core-for-checks
2025-07-04 14:14:28 +02:00
Jörg Thalheim
2a64e50798
change install test to run clan outside of the VM
2025-07-04 14:14:28 +02:00
pinpox
7414bd8024
Merge branch 'main' into state-version-option-again
2025-07-04 11:56:15 +00:00
hsjobeki
5b61c4253a
Merge pull request 'clan_lib/openapi: add openapi rendering' ( #4200 ) from lib-openapi into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4200
2025-07-04 11:54:13 +00:00
hsjobeki
2c8b457fd5
Merge pull request 'Clan_lib: add filtering by tag to list API' ( #4197 ) from cli-fixup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4197
2025-07-04 11:53:43 +00:00
Johannes Kirschbauer
12a77da0ae
api: rename script to openapi.py
2025-07-04 13:40:59 +02:00
Luis Hebendanz
9fb7f12ee3
Merge pull request 'clan-app: Implement dynamic groups and array based filtering of logs and groups' ( #4190 ) from Qubasa/clan-core:add_clan_group into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4190
2025-07-04 11:06:50 +00:00
Qubasa
5b21a266fc
clan-app: Implement dynamic log groups into javascript callApi
...
nix fmt
2025-07-04 17:49:00 +07:00
Johannes Kirschbauer
38b8722e2e
Docs: init redoc internal rest inspired docs
2025-07-04 12:45:39 +02:00
Johannes Kirschbauer
dc4733d0d0
clan_lib/openapi: add openapi rendering
2025-07-04 12:09:16 +02:00
pinpox
9a293f790e
Add state-version nixos option
...
This reverts commit 8f6f06bef3 .
2025-07-04 11:54:12 +02:00
brianmcgee
1b34aa06a4
Merge pull request 'ui/form-components' ( #4118 ) from ui/form-components into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4118
2025-07-04 08:30:22 +00:00
Johannes Kirschbauer
512f7294e6
lib/convert_inventory_to_machines: add classmethod for common conversion of Machine and InventoryMachine
2025-07-04 10:18:14 +02:00
Johannes Kirschbauer
2e38b314ad
lib/get_host: improve abstraction, turn missconfiguration into a warning
...
Motivation: A warning should encourage consistent usage of inventory.machines setting targetHost inside the machine should be considered a custom override
Changing the warning strings to avoid the term 'nix'/'json' both inventory and nixos machines are nix features
2025-07-04 10:02:06 +02:00
Johannes Kirschbauer
41cafe828f
Clan_lib: add filtering by tag to list API
2025-07-04 09:48:21 +02:00
Johannes Kirschbauer
b0c24edd48
cli: move some references to duplicate list machines
2025-07-04 09:32:43 +02:00
Qubasa
e982daf9d9
clan_lib: Move load_in_all_api_functions to clan_lib
2025-07-04 14:22:40 +07:00
Qubasa
d4a67eb1a6
clan_lib: Heavily simplified log_manager and test suite to concentrate on actually used features
2025-07-04 14:05:31 +07:00
Qubasa
43e6351a21
clan_lib: Add better docstrings to log_manager
2025-07-04 13:35:34 +07:00
Qubasa
a4964c4c93
clan_lib: expose log_manager with API.register properly
2025-07-04 13:19:09 +07:00
Qubasa
83e4dcf8f7
clan-cli: Print function name to raise for unsupported types by API.register
2025-07-04 13:17:01 +07:00
renovate[bot]
6582a04b54
chore(deps): update sops-nix digest to 3633fc4
2025-07-04 05:30:12 +00:00
DavHau
81238599cc
Merge pull request 'reverting b1f71fe4fbd5533985e2a3f9f69ecba2b382b58b' ( #4194 ) from davhau/dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4194
2025-07-04 03:51:22 +00:00