lassulus
b0fca138bb
clan-cli flake-module: get select from new lib location
2025-04-25 16:26:45 +10:00
lassulus
1a48ce593f
templates: fix usage with new select
2025-04-25 16:26:45 +10:00
lassulus
d93e58218d
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
f11ccac1b6
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
c227ee0c86
clan-app: improve README
2025-04-25 11:12:27 +10:00
renovate[bot]
d5b7da5204
Update disko digest to ca27b88
2025-04-24 13:50:10 +00:00
DavHau
c4b331adea
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
c97303cfab
clan-app: add basic smoke test using OCR + nixos tests
2025-04-24 18:17:09 +07:00
renovate[bot]
1b49751144
Update data-mesher digest to 4fdda23
2025-04-24 07:30:09 +00:00
hsjobeki
b6777cac93
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
9b96f87160
Chore(clan/clan_uri): Remove ClanURI class from clan_cli
2025-04-23 16:53:11 +02:00
hsjobeki
cd5942d675
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
b66b3458c3
lib/tests: fix container driver module path
2025-04-23 16:23:09 +02:00
Johannes Kirschbauer
abd9519412
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
a2645f2176
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
8b00edad4a
inventory tests: use containers by default
2025-04-23 19:49:02 +07:00
hsjobeki
502563a96a
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
3e31cca267
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
68170ec9fb
clanModules/vaultwarden: Migrate from facts to vars
...
Closes : #3389
2025-04-23 13:01:52 +02:00
kenji
3a93f7e35b
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
6531de6c07
clanModules/syncthing: Improve vars
2025-04-23 10:50:45 +00:00
a-kenji
38ff3f5a14
clanModules/syncthing: Group vars files
2025-04-23 10:50:45 +00:00
Johannes Kirschbauer
5177b6c0b2
UI: fix general layout
2025-04-23 10:25:25 +00:00
renovate[bot]
301059dd40
chore(deps): update disko digest to c5140c6
2025-04-23 09:40:09 +00:00
Mic92
260539c512
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
d730f73ace
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
2d8847337c
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
356b26e690
chore: treefmt
2025-04-23 08:00:16 +02:00
a-kenji
ca5ddcee93
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
08590281f2
checks/syncthing: Use default settings
2025-04-23 07:39:55 +02:00
a-kenji
f591a3ffe5
checks/syncthing: Remove nixos tests
2025-04-23 07:38:36 +02:00
hsjobeki
841ad6f48e
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
1a3346274e
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
f0d2f6650b
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
d663744f40
cli/machines: don't allow installing on macOS
2025-04-23 03:13:39 +10:00
Mic92
936311be0e
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
4c78cce06e
drop overrides of nix version
2025-04-22 18:20:35 +02:00
Jörg Thalheim
26d635a283
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
05214084a6
vms/run: upload vars
2025-04-22 18:20:35 +02:00
Jörg Thalheim
c00ca85bc7
drop unused machine_get_fact
2025-04-22 18:20:35 +02:00
Jörg Thalheim
3ac1907201
use machine.{secrets,public}_{vars,fact}_store everywhere
2025-04-22 18:20:35 +02:00
Jörg Thalheim
cbde58e1d8
zerotier: migrate from facts to vars
2025-04-22 18:20:35 +02:00
Michael Hoang
3dd6c33200
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
cd0867e402
networking: set targetHost if FQDN is explicitly set
2025-04-23 01:15:13 +10:00
hsjobeki
fae5cbd887
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
21e286b619
pkgs/generate-test-vars: speed up vars generation by precaching
2025-04-22 16:47:39 +02:00
Johannes Kirschbauer
dc284e1c40
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
Michael Hoang
bf5bfbdc4d
Merge pull request 'nixosModules/clanCore: support nix-darwin' ( #3287 ) from nix-darwin into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3287
2025-04-22 13:50:38 +00:00
hsjobeki
c1320192d0
Merge pull request 'Checks: add nixosIntegration test example to hello-service' ( #3373 ) from hsjobeki/clan-core:checks-hello into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3373
2025-04-22 13:45:46 +00:00
Michael Hoang
f4b8f2e858
vars: fix default group on macOS
2025-04-22 23:39:47 +10:00