Michael Hoang
cc4b009f06
lib: move select.select -> select for backwards compat with old CLIs
2025-04-25 17:30:06 +10:00
Michael Hoang
59e7af7830
Merge pull request 'Refactor select with new maybe selector' ( #3362 ) from better-select into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3362
2025-04-25 07:02:22 +00:00
Michael Hoang
60ff14d6b7
cli: fix restoring backups
...
There was a bug in `select` that made it output attrsets instead of
lists so we fix the broken refactor done in
5ac629f549 .
2025-04-25 16:52:13 +10:00
lassulus
34ac45bd13
clan-cli flake-module: get select from new lib location
2025-04-25 16:26:45 +10:00
lassulus
89adacebec
templates: fix usage with new select
2025-04-25 16:26:45 +10:00
lassulus
5feccf4e57
Refactor select with new maybe selector
...
This is a great refactor of the select functionality in the flake class.
This now uses the same parser as the nix code, but runs it in python for
nice stacktraces.
Also we now have a maybe selector which can be used by prepending the
selector with a ?
Tests have been expanded to make sure the code is more stable and easier
to understand
2025-04-25 16:26:45 +10:00
Michael Hoang
27077817ae
Merge pull request 'clan-app: improve README' ( #3409 ) from push-ystlwosvuxvw into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3409
2025-04-25 01:20:40 +00:00
Michael Hoang
d7f0c0fc78
clan-app: improve README
2025-04-25 11:12:27 +10:00
renovate[bot]
8f37df456d
Update disko digest to ca27b88
2025-04-24 13:50:10 +00:00
DavHau
dc5d10931b
Merge pull request 'clan-app: add basic smoke test using OCR + nixos tests' ( #3406 ) from DavHau/clan-core:dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3406
2025-04-24 12:02:06 +00:00
DavHau
39c13a5c38
clan-app: add basic smoke test using OCR + nixos tests
2025-04-24 18:17:09 +07:00
renovate[bot]
4be8f7d973
Update data-mesher digest to 4fdda23
2025-04-24 07:30:09 +00:00
hsjobeki
785f68b2f6
Merge pull request 'Chore(clan/clan_uri): Remove ClanURI class from clan_cli' ( #3401 ) from hsjobeki/clan-core:remove-clan-uri into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3401
2025-04-23 15:13:32 +00:00
Johannes Kirschbauer
7076f1b0e6
Chore(clan/clan_uri): Remove ClanURI class from clan_cli
2025-04-23 16:53:11 +02:00
hsjobeki
771901f6aa
Merge pull request 'Refactor: move checks/lib into lib/ to avoid duplicate lib' ( #3399 ) from hsjobeki/clan-core:checks-lib-remove into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3399
2025-04-23 14:33:19 +00:00
Johannes Kirschbauer
a589736f9b
lib/tests: fix container driver module path
2025-04-23 16:23:09 +02:00
Johannes Kirschbauer
f6e514ec6f
Refactor: move checks/lib into lib/ to avoid duplicate lib
...
Lets avoid the mistake of nixpkgs having multiple
libs
2025-04-23 16:19:16 +02:00
DavHau
366be7c723
Merge pull request 'inventory tests: use containers by default' ( #3398 ) from DavHau/clan-core:dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3398
2025-04-23 12:59:52 +00:00
DavHau
e2fb237c33
inventory tests: use containers by default
2025-04-23 19:49:02 +07:00
hsjobeki
c172996dbf
Merge pull request 'UI: fix general layout' ( #3397 ) from hsjobeki/clan-core:ui-3 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3397
2025-04-23 11:33:35 +00:00
Mic92
8bc58b1f8c
Merge pull request 'clanModules/vaultwarden: Migrate from facts to vars' ( #3394 ) from kenji/clan-core:ke-vaultwarden-migrate-to-vars into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3394
2025-04-23 11:32:52 +00:00
a-kenji
47073aed43
clanModules/vaultwarden: Migrate from facts to vars
...
Closes : #3389
2025-04-23 13:01:52 +02:00
kenji
55e1141eb3
Merge pull request 'clanModules/syncthing: Improve vars' ( #3391 ) from kenji/clan-core:syncthing-improve-vars into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3391
2025-04-23 10:50:45 +00:00
a-kenji
62e0ca7a08
clanModules/syncthing: Improve vars
2025-04-23 10:50:45 +00:00
a-kenji
55fbac76f8
clanModules/syncthing: Group vars files
2025-04-23 10:50:45 +00:00
Johannes Kirschbauer
0289c3ddea
UI: fix general layout
2025-04-23 10:25:25 +00:00
renovate[bot]
cdf3f5df4b
chore(deps): update disko digest to c5140c6
2025-04-23 09:40:09 +00:00
Mic92
d987049921
Merge pull request 'temporary disabling the VM test until we have vars fixed' ( #3395 ) from vms into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3395
2025-04-23 09:38:26 +00:00
Jörg Thalheim
c7a3f35fb1
temporary disabling the VM test until we have vars fixed
...
We are currently missing injecting public vars back into the vm.
To unblock the CI, we disable the test for a bit.
2025-04-23 11:26:05 +02:00
kenji
9a4a60273d
Merge pull request 'syncthing: Migrate from facts to vars' ( #3388 ) from kenji/clan-core:syncthing into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3388
2025-04-23 06:25:12 +00:00
a-kenji
5edc457fc1
chore: treefmt
2025-04-23 08:00:16 +02:00
a-kenji
8b2a92cda0
clanModules/syncthing: Fix vars usage
...
This fixes vars usage in the syncthing module.
Also removes some of the assumptions that were made in order for
`sysuser` to work, as we now use `userborn` for the vm functionality.
2025-04-23 07:40:44 +02:00
a-kenji
f8df19a128
checks/syncthing: Use default settings
2025-04-23 07:39:55 +02:00
a-kenji
fc5aaf5eaa
checks/syncthing: Remove nixos tests
2025-04-23 07:38:36 +02:00
hsjobeki
6f2b7aa6d1
Merge pull request 'vars-fix-overeager-chache-invalidation' ( #3385 ) from hsjobeki/clan-core:vars-fix-overeager-chache-invalidation into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3385
2025-04-22 18:28:27 +00:00
Johannes Kirschbauer
d3927f50ae
Tests/fix: forbid dynamic invalidation
...
We cannot support dynamic hashInvalidation.
This means the invalidation can change *after* or *before* a 'vars generate'
But not during the generation itself. This causes heavy performance overhead.
Additionally this introduces a fixed-point-iteration (compare: fixed-point-iteration vs. fixed-point-function)
This iteration takes ~ 1min for two bare-bones machine with 1 generator (see: checks/data-mesher)
2025-04-22 20:19:15 +02:00
Michael Hoang
50d032f6a4
Merge pull request 'cli/machines: don't allow installing on macOS' ( #3387 ) from push-zrqstttptroo into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3387
2025-04-22 17:22:21 +00:00
Michael Hoang
1168395336
cli/machines: don't allow installing on macOS
2025-04-23 03:13:39 +10:00
Mic92
38cbe58af4
Merge pull request 'zerotier: migrate from facts to vars' ( #3383 ) from zerotier-vars into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3383
2025-04-22 16:48:32 +00:00
Jörg Thalheim
043077269a
drop overrides of nix version
2025-04-22 18:20:35 +02:00
Jörg Thalheim
c2030eb3ba
drop test_secrets_password_store
...
we are phasing out facts and the only fact we had left for testing, got
now dropped. We still have a sops facts test, which we might also drop
soon.
2025-04-22 18:20:35 +02:00
Jörg Thalheim
ffaa30d894
vms/run: upload vars
2025-04-22 18:20:35 +02:00
Jörg Thalheim
847e3ac4ab
drop unused machine_get_fact
2025-04-22 18:20:35 +02:00
Jörg Thalheim
7392570859
use machine.{secrets,public}_{vars,fact}_store everywhere
2025-04-22 18:20:35 +02:00
Jörg Thalheim
fe6fd41a4d
zerotier: migrate from facts to vars
2025-04-22 18:20:35 +02:00
Michael Hoang
b5cc250237
Merge pull request 'networking: set targetHost if FQDN is explicitly set' ( #3386 ) from push-tylstpvrwsxv into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3386
2025-04-22 15:40:45 +00:00
Michael Hoang
e6e7f5d5de
networking: set targetHost if FQDN is explicitly set
2025-04-23 01:15:13 +10:00
hsjobeki
74e64d413f
Merge pull request 'Fix: remove daisyui' ( #3384 ) from hsjobeki/clan-core:ui-2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3384
2025-04-22 14:58:53 +00:00
Johannes Kirschbauer
e417f79527
pkgs/generate-test-vars: speed up vars generation by precaching
2025-04-22 16:47:39 +02:00
Johannes Kirschbauer
b47f2b6870
vars: move overeager cache invalidation after one generator closure is regenrated.
...
Invalidation doesn't need to be done after each generator is executed.
We cannot interpolate values from other generators into another
generator. The generators are executed in order. The finalScript of each
generator stays constant.
After the complete closure is generated the caller of generate may
decide to invalidate the flake cache
2025-04-22 16:42:21 +02:00