Jörg Thalheim
160f7d2cf5
Revert "Merge pull request 'Fix deploying with sudo + password' ( #3470 ) from target-host into main"
...
This reverts commit 8a849eb90f , reversing
changes made to 3b5c22ebcf .
2025-05-04 13:37:09 +02:00
Jörg Thalheim
4c9aaa09d5
fix ssh control master check
2025-05-04 13:36:55 +02:00
Mic92
8a849eb90f
Merge pull request 'Fix deploying with sudo + password' ( #3470 ) from target-host into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3470
2025-05-04 11:36:39 +00:00
Jörg Thalheim
15f691d5aa
tests_secrets_cli: improve assertion message for pgp key
2025-05-04 10:51:49 +02:00
Jörg Thalheim
82949237b7
fix terminal output when terminal is put into interactive mode
2025-05-04 10:51:49 +02:00
Jörg Thalheim
7abb8bb662
update: fix sudo password prompt
2025-05-04 10:51:49 +02:00
Jörg Thalheim
f4d34b1326
fix upload when sudo prompts are needed
2025-05-04 10:51:49 +02:00
Mic92
3b5c22ebcf
Merge pull request 'Miscellaneous ssh fixes.' ( #3487 ) from misc-fixes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3487
2025-05-04 08:51:31 +00:00
Mic92
a2ce48f8cc
Merge pull request 'update_hardware_config: use host.run rather than adhoc ssh command' ( #3486 ) from control-master into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3486
2025-05-04 08:47:34 +00:00
Jörg Thalheim
f6899166c7
cmd: don't shadow time module
2025-05-04 10:39:50 +02:00
Jörg Thalheim
f5277c989a
Host: always set needs_user_terminal for ssh commands, only override prefix if given by user
2025-05-04 10:39:39 +02:00
Jörg Thalheim
03731a2a67
run_local: allow stdin to be a file descriptor
2025-05-04 10:39:28 +02:00
Jörg Thalheim
091a56f57d
update_hardware_config: use host.run rather than adhoc ssh command
2025-05-04 10:30:46 +02:00
Jörg Thalheim
7351f7994c
rename connect_ssh_shell to interactive_ssh
...
better name than secure shell shell
2025-05-04 10:28:43 +02:00
Jörg Thalheim
5770ea036c
move password/tor_socks into Host attributes
...
we set those parameters usually just once.
2025-05-04 10:28:43 +02:00
Mic92
0d537a146e
Merge pull request 'configure ControlMaster and ControlPath for SSH connections' ( #3485 ) from control-master into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3485
2025-05-04 07:59:13 +00:00
Jörg Thalheim
c430ff6253
configure ControlMaster and ControlPath for SSH connections
...
This should speed up deployments by not having to reconnect to the server on each command
2025-05-04 09:48:37 +02:00
Mic92
f3f4ebfc71
Merge pull request 'facts/sops: no longer upload age key' ( #3484 ) from facts-no-age-upload into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3484
2025-05-04 07:40:05 +00:00
Jörg Thalheim
b79446f97e
facts/sops: no longer upload age key
...
The vars backend already does this for us.
This avoids duplicated work.
2025-05-04 09:29:29 +02:00
Mic92
6d75a5596e
Merge pull request 'chore(deps): update nixpkgs digest to f21e454' ( #3445 ) from renovate/nixpkgs-digest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3445
2025-05-04 07:16:50 +00:00
Mic92
2d97119a3b
Merge pull request 'Avoid a few cases of chmod-after-creation' ( #3438 ) from tangential/clan-core:it-s_a_race into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3438
2025-05-04 07:08:43 +00:00
Jörg Thalheim
d0ff114f6b
disable age-plugin-se for now on aarch64-linuxql
...
disable
2025-05-04 09:07:06 +02:00
Mic92
20ab5a67c1
Merge pull request 'clanCore/vars/sops: only copy required secrets to store' ( #3457 ) from vdbe/clan-core:clanCore/vars/sops/only-copy-used into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3457
2025-05-04 06:41:37 +00:00
vdbe
d445a353d5
clanCore/vars/sops: add sops & switch to builtins.path
2025-05-04 08:08:58 +02:00
vdbe
b08a2bdb75
clanCore/vars/sops: only copy required secrets to store
...
Create a store path per in repo secret/var to be copied, this prevents
unused secrets from being leaked.
For example the `root-password` generator contains both the hashed and
unhashed password but only the hash is used.
2025-05-04 08:08:58 +02:00
renovate[bot]
10fd3f6e43
chore(deps): update nixpkgs digest to f21e454
2025-05-04 06:00:13 +00:00
Mic92
e8c85e3237
Merge pull request 'Set terminal on nix flake update/archive' ( #3468 ) from fix-shell-on-copy into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3468
2025-05-04 05:59:58 +00:00
Mic92
6aa3ec66d8
Merge pull request 'don't depend on git for flake inputs' ( #3483 ) from no-git into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3483
2025-05-04 05:48:10 +00:00
Mic92
b767a4a09c
Merge pull request 'morph: speed up test by enabling useNixStoreImage' ( #3481 ) from morph into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3481
2025-05-04 05:40:50 +00:00
Jörg Thalheim
b0bd209638
don't depend on git for flake inputs
...
This makes migration of an existing machine without git installed
easier:
fixes:
https://git.clan.lol/clan/clan-core/issues/3465#issuecomment-28189
2025-05-04 07:30:49 +02:00
Jörg Thalheim
b187d9b3d2
morph: speed up test by enabling useNixStoreImage
2025-05-04 07:29:31 +02:00
renovate[bot]
83d8c3d2f3
chore(deps): update data-mesher digest to 6544fb9
2025-05-03 21:00:09 +00:00
DavHau
1ce482f8f7
GUI/devshell: hot reload python API
...
This change speeds up the development workflow on the GUI when modifying the python api
The GUI started from the devshell already hot reloads itself on any change of the typescript codebase.
But python api changes were not caught bu the hot reload and required a reload of the devshell which is slow.
This change implements a custom vite plugin to also listen to changes coming from the clan-cli python code and re-generate the python-ts api on any change.
2025-05-03 19:22:16 +07:00
renovate[bot]
8803b3e0b5
chore(deps): update data-mesher digest to 642de25
2025-05-03 08:50:09 +00:00
renovate[bot]
9b66af37eb
chore(deps): update data-mesher digest to 13026a9
2025-05-03 08:10:09 +00:00
DavHau
9186961ccb
GUI/vars: add endpoints for getting prompts and generating vars
2025-05-03 14:44:51 +07:00
DavHau
ca594bbe95
refactor(vars): move migration logic to extra file
2025-05-03 07:33:11 +00:00
renovate[bot]
5454076df7
Update nix-darwin digest to 760a11c
2025-05-03 07:00:13 +00:00
DavHau
f8e7292bc4
GUI: generate sops key when creating clan
2025-05-03 13:00:27 +07:00
renovate[bot]
2ddb38a434
Update treefmt-nix digest to 29ec502
2025-05-02 20:40:11 +00:00
pinpox
a99c832ed9
Set terminal on nix flake update/archive
...
When using resident SSH-keys (-sk), e.g. from a Yubikey that require a
Pin, a terminal is needed to be able to enter it during deployment.
2025-05-02 15:41:29 +02:00
Mic92
12882ed68d
Merge pull request 'Update data-mesher digest to 80b8ba4' ( #3469 ) from renovate/data-mesher-digest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3469
2025-05-02 13:31:17 +00:00
renovate[bot]
134c545782
Update data-mesher digest to 80b8ba4
2025-05-02 13:20:10 +00:00
renovate[bot]
7889192b7c
Update data-mesher digest to ba46584
2025-05-02 03:40:09 +00:00
brianmcgee
05a18baecb
Merge pull request 'clan-cli select: fix returning early on list select' ( #3464 ) from select-lists-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3464
2025-05-01 16:06:31 +00:00
lassulus
e6ebca8588
clan-cli select: fix returning early on list select
2025-05-02 00:16:21 +09:00
renovate[bot]
fcf1c683c5
Update data-mesher digest to 9d10655
2025-05-01 13:30:09 +00:00
Mic92
db215a48b5
Merge pull request 'correct capitilization for targetHost in error message' ( #3461 ) from target-host into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3461
2025-05-01 13:21:42 +00:00
Mic92
1df62bd2f2
Merge pull request 'clan_cli flake caching: fix caching of store files' ( #3458 ) from select-store-caching into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3458
2025-05-01 13:12:05 +00:00
Jörg Thalheim
ea1c8b9503
correct capitilization for targetHost in error message
2025-05-01 15:11:05 +02:00
renovate[bot]
511b107511
chore(deps): update data-mesher digest to 2327a7e
2025-05-01 06:50:09 +00:00
lassulus
47bcec69ab
clan_cli flake caching: fix caching of store files
2025-05-01 13:40:12 +09:00
renovate[bot]
47203d849e
chore(deps): update data-mesher digest to c74c5ed
2025-04-30 16:10:09 +00:00
hsjobeki
7b4b700c33
Merge pull request 'Refactor(inventory): move prio 'introspection' into inventoryClass to minimize the 'clanInternals' api' ( #3440 ) from hsjobeki/clan-core:ui-fixups into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3440
2025-04-30 10:24:34 +00:00
kenji
69d394088b
Merge pull request 'docs/reference: Improve wording of reference overview' ( #3454 ) from kenji/clan-core:ke-docs-improve-reference into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3454
2025-04-30 10:19:12 +00:00
a-kenji
4c1e346cf2
docs/reference: Improve wording of reference overview
...
There is no value in calling it "automatically extracted" - but it is
potentially misleading.
2025-04-30 10:19:12 +00:00
hsjobeki
be9a43c50b
Merge pull request 'fix(clan-app): Misc ui styling fixes' ( #3451 ) from amunsen/clan-core:ui-fixes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3451
2025-04-30 10:18:42 +00:00
Johannes Kirschbauer
049d41f35c
Fix: fix sidebar marker for webkit
2025-04-30 12:05:51 +02:00
kenji
055bd1edd5
Merge pull request 'clanModules/password: Fix vars documentation' ( #3453 ) from kenji/clan-core:ke-fix-vars-docs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3453
2025-04-30 10:05:22 +00:00
a-kenji
9ae44db29c
clanModules/password: Fix vars documentation
2025-04-30 11:55:23 +02:00
Johannes Kirschbauer
17a6eda4b1
Fix: remove unused classNames
2025-04-30 11:43:29 +02:00
Timo
6beba157fe
modules page: improves design cohesiveness of module components
2025-04-30 11:16:10 +02:00
Timo
a14dcf4adb
form component: unify values and improve cohesiveness of overall design within dyn-form component
2025-04-30 11:14:19 +02:00
Timo
9bc23690a3
form components: adds general fieldset component and accordion component
2025-04-30 11:13:32 +02:00
Timo
5b0334adda
button component: adds button-group component
2025-04-30 11:12:06 +02:00
Timo
45639c0d4f
button component: moves dark style button into dedicated style classes
2025-04-30 11:09:03 +02:00
Timo
dfa861428f
button component: orders classes and properties, moves tailwind classes to dedicates css file for better DOM readability
2025-04-30 11:09:03 +02:00
Timo
f15cd773c5
sidebarListItem: fixed active states to be displayed in ui
2025-04-30 11:09:03 +02:00
Timo
1a24a05034
general layout: removes drawer-component and adjusts font sizes in sidebar
2025-04-30 11:09:01 +02:00
Johannes Kirschbauer
e07551cecf
Refactor(inventory): move prio 'introspection' into inventoryClass to minimize the 'clanInternals' api
2025-04-30 11:02:58 +02:00
DavHau
1f4b526e42
ci-performance: remove self reference from installation test
2025-04-30 15:53:18 +07:00
DavHau
8a4fe1405a
gui: make update machine work
...
Also fix error when age plugins not defined
2025-04-30 15:28:49 +07:00
DavHau
f7e0345ab3
app: open welcome page if clan doesn't exist
...
Previously if a user started the app and the last opened clan directory does not exist anymore, it would still show the clan screen but without any machines.
This changes catches this case and throws the user back to the clan selection page
2025-04-30 14:48:05 +07:00
Mic92
11afc1faef
Merge pull request 'chore(deps): update data-mesher digest to 517092d' ( #3441 ) from renovate/data-mesher-digest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3441
2025-04-30 06:48:06 +00:00
renovate[bot]
c0964e1b22
chore(deps): update data-mesher digest to 517092d
2025-04-30 06:40:11 +00:00
DavHau
f8c5b178a4
add select file that shouldn't exist but does to gitignore
2025-04-30 13:28:19 +07:00
DavHau
93090b74e5
ci performance: add check to ensure nothing depends on the whole repo
...
Since this project is an ever growing monorepo, having derivations depending on the whole repo leads to bad CI performance, as the cache is busted on every commit.
-> We never want any derivations depend on the whole repo
...except: the test that tests that nothing depends on the whole repo, which is added by this commit.
For now only add this check to packages to allow contributors to build it locally.
We might want to add it to the CI later once all occurrences are fixed.
2025-04-30 13:17:33 +07:00
hsjobeki
2ea4bd059c
Merge pull request 'refactor(clan.service): make evalClanService a standalone function to interact with standalone modules' ( #3444 ) from hsjobeki/clan-core:clan-services-4 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3444
2025-04-29 13:38:02 +00:00
Johannes Kirschbauer
3d09c98ed3
Checks: add json-compat check wrapper to ensure all clan.modules stay json-compatible
2025-04-29 15:31:02 +02:00
Johannes Kirschbauer
a4a1363195
refactor(clan.service): make evalClanService a standalone function to interact with standalone modules
2025-04-29 15:12:44 +02:00
renovate[bot]
fd4d42c54c
chore(deps): update treefmt-nix digest to 82bf32e
2025-04-29 13:00:11 +00:00
hsjobeki
670cfe6fbc
Merge pull request 'Feat(clan.service): require roles.interface to be json serializable' ( #3442 ) from hsjobeki/clan-core:clan-services-4 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3442
2025-04-29 12:51:10 +00:00
Johannes Kirschbauer
9b5f100ac6
Feat(clan.service): require roles.interface to be json serializable
2025-04-29 14:42:47 +02:00
kenji
ff71c819e1
Merge pull request 'clanModules/iwd: Migrate from facts to vars' ( #3439 ) from kenji/clan-core:ke-iwd-migrate-to-vars into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3439
2025-04-29 12:03:56 +00:00
a-kenji
4bd43f297a
clanModules/iwd: Migrate from facts to vars
2025-04-29 13:55:45 +02:00
Michael Hoang
78f96ec533
Merge pull request 'age plugin support' ( #3322 ) from feat/age-plugin-support into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3322
2025-04-29 06:12:44 +00:00
Brian McGee
a438fe77a7
feat: configure age plugins for SOPS in buildClan
2025-04-29 16:02:32 +10:00
Brian McGee
d3e1c0b4e4
fix: multiple user keys in secrets
...
We were not loading all the user keys, only the first one.
2025-04-29 15:47:54 +10:00
Brian McGee
1694a977f1
feat: support age plugins
...
Extends how we parse the contents of `SOPS_AGE_KEY` / `SOPS_AGE_KEY_FILE` / `keys.txt`, allowing a user to prepend a comment before any `AGE-PLUGIN-` secret key entry to indicate its corresponding public key.
For example:
```
AGE-PLUGIN-FIDO2-HMAC-xxxxxxxxxxxxx
```
The comment can use any prefix (e.g. `# public key: age1xxxx`, `# recipient: age1xxx`) as we are looking directly for `age1xxxx` within the line.
This change is necessary to support `age` plugins as there is no unified mechanism to recover the public key from a plugin's secret key.
If a plugin secret key does not have a preceding public key comment, an error will be thrown when attempting to set a secret.
2025-04-29 15:47:54 +10:00
Michael Hoang
852fdc2846
Merge pull request 'chore(deps): lock file maintenance' ( #3365 ) from renovate/lock-file-maintenance into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3365
2025-04-29 05:22:24 +00:00
Michael Hoang
5879c48616
container-test-driver: fix SSH not working inside container tests
2025-04-29 15:10:09 +10:00
Michael Hoang
7d46237b67
container-test-driver: add Machine.fail
2025-04-29 14:57:58 +10:00
renovate[bot]
82b3ba97b7
chore(deps): lock file maintenance
2025-04-29 02:00:26 +00:00
renovate[bot]
a79c79ffec
chore(deps): update data-mesher digest to 11b5673
2025-04-29 01:40:09 +00:00
Jonathan Thiessen
839f8fb347
Avoid a few cases of chmod-after-creation
2025-04-28 17:11:21 -07:00
DavHau
ebada396dd
build-clan: Throw better error when _class is not provided by nixpkgs
2025-04-28 15:49:14 +00:00
renovate[bot]
b709f30ef4
chore(deps): update treefmt-nix digest to 763f1ce
2025-04-28 14:30:15 +00:00
hsjobeki
7c5ed8945f
Merge pull request 'ui-fixups' ( #3436 ) from hsjobeki/clan-core:ui-fixups into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3436
2025-04-28 12:34:16 +00:00
Johannes Kirschbauer
a6f97b0a04
Fix(app/machine/create): fix css styling inconsistencies, remove ability to set tags
2025-04-28 14:25:29 +02:00
Johannes Kirschbauer
05c172466f
Fix(app/sidebar): remove duplicate marker
2025-04-28 14:15:02 +02:00
Johannes Kirschbauer
b3e5b1de8a
Chore(app): re-enable classname linting to be an error
2025-04-28 14:14:42 +02:00
hsjobeki
3b6657c657
Merge pull request 'Fix(app/machines): fix css styling of machine list overview' ( #3435 ) from hsjobeki/clan-core:ui-fixups into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3435
2025-04-28 12:08:07 +00:00
Johannes Kirschbauer
6700d3d502
Fix(app/machines): fix css styling of machine list overview
2025-04-28 14:00:17 +02:00
renovate[bot]
346853c4f7
chore(deps): update treefmt-nix digest to d1863f3
2025-04-28 11:10:15 +00:00
DavHau
19e528ef54
Merge pull request 'Revert "chore(deps): update data-mesher digest to 41534a3"' ( #3432 ) from DavHau/clan-core:revert-data-mesher into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3432
2025-04-28 11:07:34 +00:00
DavHau
ab6a73cf6b
Revert "chore(deps): update data-mesher digest to 41534a3"
...
This reverts commit f830bf4a0e .
2025-04-28 17:55:04 +07:00
renovate[bot]
f830bf4a0e
chore(deps): update data-mesher digest to 41534a3
2025-04-28 08:00:20 +00:00
renovate[bot]
d69b814fa5
chore(deps): update treefmt-nix digest to c6d3010
2025-04-28 07:40:10 +00:00
renovate[bot]
9e6fdb4aff
chore(deps): update nix-darwin digest to 4515dac
2025-04-28 05:30:10 +00:00
renovate[bot]
3c5ba156b8
chore(deps): update disko digest to d0c543d
2025-04-28 04:40:10 +00:00
Michael Hoang
da7abe26a8
Merge pull request 'cli: don't depend on the entire clan-core' ( #3424 ) from push-pzytrksvysmu into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3424
2025-04-28 03:30:01 +00:00
Michael Hoang
c73652a401
cli: don't depend on the entire clan-core
2025-04-28 13:20:07 +10:00
Michael Hoang
c347badd7f
cli: fallback to bundled Nixpkgs
2025-04-28 13:10:00 +10:00
Michael Hoang
c7c3abdf04
Merge pull request 'cli: don't use select from clanLib' ( #3423 ) from push-ywotxpmyxlwp into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3423
2025-04-28 03:01:48 +00:00
Michael Hoang
6c8ef6e9be
cli: don't use select from clanLib
2025-04-28 12:52:00 +10:00
renovate[bot]
52a28488c7
chore(deps): update data-mesher digest to 8d0a67b
2025-04-28 00:30:10 +00:00
renovate[bot]
15832521e7
chore(deps): update treefmt-nix digest to b2b6c02
2025-04-27 20:30:24 +00:00
renovate[bot]
9e409cbefe
chore(deps): update data-mesher digest to f05729d
2025-04-27 20:10:09 +00:00
hsjobeki
5fc1f2cdbb
Merge pull request 'Chore: remove unused legacy endpoints' ( #3418 ) from hsjobeki/clan-core:chores-remove-unused into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3418
2025-04-27 11:25:00 +00:00
Johannes Kirschbauer
b87d5a238c
chore: remove unused moduleSchemas and related API endpoint for legacy modules
...
We didn't reach the state where we would display these schemas in the
UI.
We might need to wire this up in a similar way for the newer
clan.services
2025-04-27 13:14:09 +02:00
Johannes Kirschbauer
7007b7d62e
refactor: rename clanLib.values to introspection
2025-04-27 13:10:42 +02:00
hsjobeki
033c50a5c3
Merge pull request 'Feat(clan.service): init automatic assertions for api schema checks' ( #3416 ) from hsjobeki/clan-core:new-json-schemas into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3416
2025-04-27 11:07:12 +00:00
hsjobeki
5aa8715e9f
Merge pull request 'fix: typo in auto-upgrade clanModule' ( #3417 ) from hsjobeki/clan-core:fix-auto-upgrade into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3417
2025-04-27 10:13:22 +00:00
Johannes Kirschbauer
3e31a73ae3
fix: typo in auto-upgrade clanModule
2025-04-27 12:04:03 +02:00
Johannes Kirschbauer
6dfc324661
Feat(clan.service): init automatic assertions for api schema checks
2025-04-27 11:49:56 +02:00
hsjobeki
95e6c5ca0f
Merge pull request 'Feat(clan.service): enable opt-in json-schema restriction for clan.service interface modules' ( #3415 ) from hsjobeki/clan-core:new-json-schemas into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3415
2025-04-27 09:49:08 +00:00
Johannes Kirschbauer
8495106ec4
feat(services): init feature flags in the module manifest: 'manifest.features.API'
2025-04-27 11:07:45 +02:00
Johannes Kirschbauer
ffa8257763
chore: remove unused option 'clanSchema' from core nixos modules
2025-04-27 11:07:45 +02:00
hsjobeki
bdeba9e4bf
Merge pull request 'Init 'clan_lib' namespace and migrate clan_cli.api' ( #3414 ) from hsjobeki/clan-core:clan-lib into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3414
2025-04-26 18:29:35 +00:00
Johannes Kirschbauer
070114ae9f
Fix(clan_lib.api): fix cyclic import problem for api schema export
2025-04-26 20:19:23 +02:00
Johannes Kirschbauer
acbe619883
Refactor(clan_lib): move clan_cli.api into clan_lib.api
2025-04-26 19:51:35 +02:00
Johannes Kirschbauer
3b889649ec
Refactor(clan_cli): init clan_lib folder
2025-04-26 19:50:11 +02:00
Mic92
e335556767
Merge pull request 'nixpkgs source: delete existing symlink' ( #3411 ) from nixpkgs-build into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3411
2025-04-25 14:41:23 +00:00
Jörg Thalheim
97564052ab
nixpkgs source: delete existing symlink
2025-04-25 16:31:35 +02:00
Luis Hebendanz
7b6483bfad
Merge pull request 'clan-cli: Expose private_key to Machine class, in the future we should merge Machine and Host class' ( #3407 ) from Qubasa/clan-core:vpb-patches2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3407
2025-04-25 12:26:00 +00:00
Qubasa
130a5bc593
clan-cli: Improve remote destination depth validation with detailed error messaging
2025-04-25 14:00:40 +02:00
Qubasa
9d45376f95
clan-cli: Expose private_key to Machine class, in the future we should merge Machine and Host class
2025-04-25 13:38:03 +02:00
Mic92
e78bd89426
Merge pull request 'clanCore/vars: allow mode to be set' ( #3404 ) from visualphoenix/clan-core:mode_fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3404
2025-04-25 09:44:25 +00:00
Raymond Barbiero
222915a9ed
clanCore/vars: allow mode to be set
...
fmt
2025-04-25 11:29:43 +02:00
Michael Hoang
d8780b8da9
Merge pull request 'lib: move select.select -> select for backwards compat with old CLIs' ( #3410 ) from push-vxxntzmwuzzx into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3410
Reviewed-by: lassulus <clanlol@lassul.us >
2025-04-25 09:24:17 +00:00
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
Michael Hoang
5cadb0cfbc
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
ce55397ef7
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
20ae80ee49
vars: fix default group on macOS
2025-04-22 23:39:47 +10:00
Michael Hoang
f40ab5c379
docs: always evaluate with class of nixos
2025-04-22 23:39:47 +10:00
Michael Hoang
de12036630
cli: support updating nix-darwin machines
2025-04-22 23:39:47 +10:00
Michael Hoang
91a2739ea3
cli: fix unnecessary sudo when unspecified user defaults to root
2025-04-22 23:39:46 +10:00
Johannes Kirschbauer
7dd249863f
Fix: remove daisyui
...
We wanted to remove daisyui a long time ago
Since renovate updates broke all of the classes somehow we use the opportunity to remove daisyui
And will fix all the breakages continously as we work on the features
2025-04-22 15:24:52 +02:00
Michael Hoang
b5901d5577
cli: only use sudo when deploying locally
2025-04-22 23:14:03 +10:00
Michael Hoang
a0117c51c1
cli: use sudo consistently when running nixos-rebuild switch
2025-04-22 23:14:03 +10:00
Michael Hoang
a575894a83
nixosModules/clanCore: support nix-darwin
2025-04-22 23:14:03 +10:00
Michael Hoang
2bbf4b168a
Back out "cli: don't update macOS machines"
...
This backs out commit 72ed0e258a .
2025-04-22 23:14:03 +10:00
Johannes Kirschbauer
a6d7c491e4
Fix: clnixos-integration tests only work on linux
2025-04-22 14:56:09 +02:00
Mic92
1f78de953a
Merge pull request 'Container-tests: add multi-container network' ( #3381 ) from netns into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3381
2025-04-22 12:11:27 +00:00
DavHau
18493f869b
container-tests: add multi-container network
2025-04-22 13:26:37 +02:00
Michael Hoang
b6ac3dbc88
Merge pull request 'Chore: restore ui lockfile from a3f6fb21c8a22977009e1055fc1d31507977e7f2' ( #3380 ) from hsjobeki/clan-core:ui-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3380
2025-04-22 10:41:20 +00:00
Johannes Kirschbauer
4ead0045cb
Fix: typescript problem with inventory indexing
2025-04-22 12:10:25 +02:00
renovate[bot]
3a5efdbd9f
chore(deps): update sops-nix digest to 5e3e92b
2025-04-22 08:50:11 +00:00
Johannes Kirschbauer
6630e227c7
Chore: restore ui lockfile from a3f6fb21c8
2025-04-22 09:48:46 +02:00
Jörg Thalheim
508e71cace
syncthing: warn that this module is currently not usuable without vms
2025-04-22 09:45:37 +02:00
Jörg Thalheim
21f69ca7c4
syncthing: migrate to new inventory system
2025-04-22 09:45:37 +02:00
Johannes Kirschbauer
999c47dbed
Checks: add nixosIntegration test example to hello-service
2025-04-22 06:32:32 +00:00
hsjobeki
bcc4aa9902
Merge pull request 'Chore: disable renovate for the ui' ( #3375 ) from hsjobeki/clan-core:renovate-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3375
2025-04-21 18:52:16 +00:00
renovate[bot]
15b10bd9ad
chore(deps): update typescript-eslint monorepo to v8.31.0
2025-04-21 18:00:18 +00:00
renovate[bot]
73e5d08511
chore(deps): update dependency eslint to v9.25.1
2025-04-21 17:20:16 +00:00
renovate[bot]
580a087ef4
chore(deps): update dependency @eslint/js to v9.25.1
2025-04-21 17:00:16 +00:00
Johannes Kirschbauer
65b16af7ef
Chore: disable renovate for the ui
...
We disable renovate until we have automated ui tests
Renovate broke our UI because we dont have test that would fail
2025-04-21 18:54:24 +02:00
Michael Hoang
8f490c3362
Merge pull request 'vars: improve messaging' ( #3372 ) from push-tktvqwxutpnx into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3372
2025-04-21 16:11:41 +00:00
Michael Hoang
8ae348d686
vars: improve messaging
2025-04-22 02:03:24 +10:00
Mic92
2fbdb70ca3
Merge pull request 'state-version: fix default of config.system.stateVersion' ( #3371 ) from test-vars-generate into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3371
2025-04-21 15:45:21 +00:00
Jörg Thalheim
69224e57fa
state-version: fix default of config.system.stateVersion
...
fixes https://git.clan.lol/clan/clan-core/issues/3360
2025-04-21 15:37:22 +00:00
hsjobeki
5908aed2c7
Merge pull request 'Inventory/tags: init {nixos,darwin} tags' ( #3370 ) from hsjobeki/clan-core:tags-2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3370
2025-04-21 15:27:13 +00:00
Johannes Kirschbauer
cd0e8eafce
Fix: manually define empty tags for testing
2025-04-21 17:17:56 +02:00
Johannes Kirschbauer
9d413a7682
Inventory/tags: init {nixos,darwin} tags
2025-04-21 16:43:15 +02:00
hsjobeki
b107d2bc49
Merge pull request 'refactor(clanServices): add example of eval test' ( #3337 ) from hsjobeki/clan-core:clan-services-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3337
2025-04-21 14:19:26 +00:00
Johannes Kirschbauer
ec99aea8f7
refactor: init hello-world module with unit tests (eval)
2025-04-21 16:10:05 +02:00
Johannes Kirschbauer
b791656694
clanLib: init flakeModules for better testing
2025-04-21 16:10:05 +02:00
Johannes Kirschbauer
f7b12d8bda
refactor(clanServices): add example of eval test
2025-04-21 16:10:05 +02:00
Mic92
ee07f79ba9
Merge pull request 'test-vars-generate: override machines class yet' ( #3369 ) from test-vars-generate into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3369
2025-04-21 13:28:11 +00:00
Jörg Thalheim
9780f45e97
generate-test-vars: use shutil.rmtree instead of rm
...
More portable.
2025-04-21 15:18:14 +02:00
Jörg Thalheim
74ef833dd3
generate-test-vars: improve caching and reduce number of overrides in base class
2025-04-21 15:18:14 +02:00
Jörg Thalheim
b4880d09a9
Machines: remove unused method argument from self.nix()
2025-04-21 15:18:14 +02:00
Jörg Thalheim
a4dfdc300e
generate-test-vars: use absolute paths in flake urls
...
flakes don't work with releative paths
2025-04-21 15:18:14 +02:00
Jörg Thalheim
60dcfd5cf9
rename vars-generate to generate-test-vars
2025-04-21 15:18:14 +02:00
Jörg Thalheim
df08fea1c1
devshell/clan-cli: fix CLAN_PROVIDED_PACKAGES having too many packages
2025-04-21 15:18:14 +02:00
Jörg Thalheim
80e739bd1b
Reapply "remove nix_shell_legacy"
...
This reverts commit 1232fb5af2 .
2025-04-21 13:23:50 +02:00
hsjobeki
5eef4ba663
Merge pull request 'pkgs(vars-generator): init new package to generate vars' ( #3357 ) from hsjobeki/clan-core:patch-2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3357
2025-04-21 11:13:49 +00:00
renovate[bot]
de09f5cc8f
chore(deps): update dependency vitest to v3.1.2
2025-04-21 09:00:33 +00:00
renovate[bot]
c7809018bd
chore(deps): update disko digest to 1770bf1
2025-04-21 08:50:11 +00:00
renovate[bot]
08dfd7e1b4
chore(deps): update data-mesher digest to 817a74e
2025-04-21 00:20:13 +00:00
hsjobeki
1eca2261e1
Merge pull request 'chore(select/cache): rename 'prefetch' to 'invalidate_cache'' ( #3364 ) from hsjobeki/clan-core:vars-fixing into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3364
2025-04-20 15:00:35 +00:00
Johannes Kirschbauer
a01437d01e
pkgs(vars-generator): init new package to generate vars
2025-04-20 14:08:52 +02:00
Johannes Kirschbauer
872d54b594
chore(select/cache): rename 'prefetch' to 'invalidate_cache'
2025-04-20 13:34:52 +02:00
hsjobeki
310b6c8345
Merge pull request 'machine/vars: expose result direclty via vars submodule; keep deployment.data alias for now' ( #3363 ) from hsjobeki/clan-core:vars-fixing into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3363
2025-04-20 11:32:03 +00:00
Johannes Kirschbauer
dbd859bea2
machine/vars: expose result direclty via vars submodule; keep deployment.data alias for now
2025-04-20 13:23:01 +02:00
renovate[bot]
779d28577d
chore(deps): update dependency eslint to v9.25.0
2025-04-18 18:40:14 +00:00
renovate[bot]
07ea8237f5
chore(deps): update dependency @eslint/js to v9.25.0
2025-04-18 18:20:14 +00:00
Michael Hoang
c2d53e4525
Merge pull request 'vars: make wording nicer when multiple vars are found' ( #3351 ) from push-zrtnwqoxyzmz into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3351
2025-04-18 17:28:01 +00:00
Michael Hoang
23ae0e6712
vars: make wording nicer when multiple vars are found
2025-04-18 19:18:42 +02:00
hsjobeki
58aaf879e0
Merge pull request 'Revert "remove nix_shell_legacy"' ( #3356 ) from hsjobeki/clan-core:patch-2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3356
2025-04-18 12:58:57 +00:00
Johannes Kirschbauer
1232fb5af2
Revert "remove nix_shell_legacy"
...
This reverts commit 8cde32c76f .
2025-04-18 14:49:54 +02:00
pinpox
83542b20b4
Merge pull request 'Fix conftest typo' ( #3355 ) from fix-conftest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3355
2025-04-18 12:35:31 +00:00
pinpox
2152d59d9d
Fix conftest typo
2025-04-18 14:25:22 +02:00
hsjobeki
0b983d7994
Merge pull request 'test(cli/select): add simple caching test' ( #3342 ) from hsjobeki/clan-core:select-testing into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3342
2025-04-18 12:15:05 +00:00
Johannes Kirschbauer
ebb1be084f
test(cli/select): add simple caching test
2025-04-18 14:06:59 +02:00
renovate[bot]
98adaebde3
chore(deps): update treefmt-nix digest to 8d404a6
2025-04-18 08:10:19 +00:00
renovate[bot]
3ca04e4c3b
chore(deps): update data-mesher digest to 0328b8c
2025-04-18 08:00:13 +00:00
renovate[bot]
5b627f9b48
chore(deps): update data-mesher digest to b824c4f
2025-04-18 06:10:22 +00:00
renovate[bot]
a7256f7fb3
chore(deps): update treefmt-nix digest to 2550683
2025-04-18 06:00:14 +00:00
renovate[bot]
00921311a9
chore(deps): update dependency vite to v6.3.2
2025-04-18 05:00:15 +00:00
renovate[bot]
5aeee3716b
chore(deps): update disko digest to 51d33bb
2025-04-18 02:10:10 +00:00
Michael Hoang
2424ae21b7
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
41ff4a4247
build-clan: fix constructing nix-darwin machines
2025-04-17 20:23:54 +02:00
renovate[bot]
3f8b7feb1d
fix(deps): update dependency @tanstack/solid-query to v5.74.4
2025-04-17 10:00:16 +00:00
renovate[bot]
3ec8dbdcdf
chore(deps): update dependency vite to v6.3.1
2025-04-17 02:00:17 +00:00
Mic92
e90b6c7f82
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
8cde32c76f
remove nix_shell_legacy
2025-04-16 21:03:58 +02:00
Mic92
37f8b5919e
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
10cd98e158
rename CLAN_STATIC_PROGRAMS -> CLAN_PROVIDED_PACKAGES
2025-04-16 18:27:01 +00:00
Jörg Thalheim
2240a3a533
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
4b9a0d8c19
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
25b1b9301b
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
56a0b0a994
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
ed68a4dde1
update_hardware_config: migrate from nix_shell to run_cmd
2025-04-16 19:32:40 +02:00
Jörg Thalheim
80a252cf1a
sort allowed-programs.json
2025-04-16 19:32:40 +02:00
Jörg Thalheim
00d25d7fb8
Host: migrate from nix_shell to run_cmd
2025-04-16 19:32:40 +02:00
Jörg Thalheim
f94625fa6e
mumble: fix certificate generator
...
no idea how this ever worked before.
2025-04-16 18:49:24 +02:00
Jörg Thalheim
bcd2b1ae1f
mumble: migrate to inventory
2025-04-16 18:49:24 +02:00
Jörg Thalheim
51b184e8be
mumble: remove duplicate nixos test
2025-04-16 18:49:24 +02:00
Jörg Thalheim
45ae0920e2
mumble: migrate to vars
2025-04-16 18:49:24 +02:00
Jörg Thalheim
1f50ee51df
update-vars: don't print private key
2025-04-16 18:49:24 +02:00
Jörg Thalheim
6057d3e044
update-vars: fallback to gitroot
2025-04-16 18:49:24 +02:00
Jörg Thalheim
188764bca5
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
cdfd03a067
migrate moonlight/sunshine to vars
2025-04-16 17:48:09 +02:00
Valentin Gagarin
ebd5afe8f5
fixup(jsonschema): test attrsOf submodules with valid value
2025-04-16 16:55:50 +02:00
Valentin Gagarin
6a2e81373c
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
ee16f7c072
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
6703473152
impure-checks: limit number of workers to number of tests
2025-04-16 15:05:59 +02:00
Jörg Thalheim
d2173cb120
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
42025fbfff
Remove unused clan history update subcommand
2025-04-16 14:51:37 +02:00
Johannes Kirschbauer
9f7e9ca9df
feat(jsonschema): add test for attrsof submodule
2025-04-16 14:48:49 +02:00
Valentin Gagarin
e28681c4f2
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]
46ddc9f438
chore(deps): update dependency vite to v6.3.0
2025-04-16 09:50:12 +00:00
hsjobeki
65bb3863e0
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
69ce584b96
init(clanServices): add zerotier boilerplate to clanServices
2025-04-16 11:34:58 +02:00
hsjobeki
49977bd935
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
2796038254
chore(test/makeTestClan): document all options, remove magic specialArgs
2025-04-16 10:33:32 +02:00
Johannes Kirschbauer
7bdb2cabf9
fix: rename folder lib/tests -> lib/test to be consistent with the attribute name
2025-04-16 10:04:31 +02:00
Johannes Kirschbauer
7dec3b8117
fixup: update commen in inventory example test
2025-04-16 10:02:20 +02:00
Johannes Kirschbauer
23270ff0ce
feat(scripts/update-vars): expose all configurables as arguments {repo_root, test_dir, check_attr}
2025-04-16 09:50:09 +02:00
hsjobeki
f1856fbaa3
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
c895907b9d
revert 83ec5a063a
...
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
104bb9f90d
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
8ae0f5ddcb
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
20d42b961a
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
ea174379ca
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
Johannes Kirschbauer
f331295dd5
feat(buildClan): expose {nixosModules,darwinModules} from clanInternals
...
These are the exact same modules that where used internally to construct the corresponding
'nixosConfiguration', 'darwinConfiguration'
They can be externally used, and would yield the same result
Given that you pass the same 'specialArgs'
2025-04-15 17:25:57 +02:00
Michael Hoang
3d5dbeb201
clanCore: remove clan.core.module
2025-04-15 17:17:16 +02:00
hsjobeki
443eb7dacb
Merge pull request 'refactor: buildClan output; output deferred modules instead of nixosConfig' ( #3323 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3323
2025-04-15 14:47:49 +00:00
Michael Hoang
11a4dcfd6f
Merge pull request 'machines: fix nixos-rebuild not getting retried' ( #3325 ) from push-vqmkpyrsvqqw into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3325
2025-04-15 14:31:47 +00:00
Michael Hoang
99be2d0019
machines: fix nixos-rebuild not getting retried
2025-04-15 16:16:03 +02:00
Johannes Kirschbauer
9800255a2c
refactor(buildClan): simplify pkgs overriding logic
2025-04-15 16:05:57 +02:00
Johannes Kirschbauer
e68ab67112
refactor(buildClan): move modules into 'forName' and import the correct core module depending on class
2025-04-15 15:29:01 +02:00
Johannes Kirschbauer
d264e262bd
fixup(buildClan): use clan.inventory instead of refering to the clanInternals dumping ground within the module
2025-04-15 15:10:08 +02:00
Johannes Kirschbauer
af04bf547f
fixup(buildClan): split up the inner-module into: {forSystem, forName}
...
I am preparing this such that we can move the forName modules into the
defaults for the deferred module outputs and the forSystem modules are
added later and only for the 'configsPerSystem' where we actually need
the system modules
2025-04-15 15:02:37 +02:00
renovate[bot]
c7631e4a21
chore(deps): update data-mesher digest to 439f851
2025-04-15 12:30:10 +00:00
Johannes Kirschbauer
14ace40820
refactor: buildClan output; output deferred modules instead of nixosConfig
2025-04-15 14:25:02 +02:00
Michael Hoang
eb2639eb41
Merge pull request 'build-clan: drop unused machinesFunc' ( #3324 ) from push-wktowzqkrvsp into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3324
2025-04-15 12:20:09 +00:00
Michael Hoang
5cc1d823aa
build-clan: drop unused machinesFunc
2025-04-15 13:30:28 +02:00
renovate[bot]
335455cc83
chore(deps): update treefmt-nix digest to 49d0555
2025-04-15 09:10:10 +00:00
lassulus
9bb21d5724
Merge pull request 'fast-vars-gen' ( #3216 ) from fast-vars-gen into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3216
2025-04-15 07:11:06 +00:00
Mic92
fac18d0ee8
Merge pull request 'Rework cache to use json instead of pickle' ( #3319 ) from validation-hash-2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3319
2025-04-15 07:11:03 +00:00
Jörg Thalheim
812093b551
rework cache to use json instead of pickle
...
Pickle can silently break if migrate our data layout and also introduces
unwanted behaviour such as code injection that we want to avoid.
2025-04-15 07:00:00 +00:00
renovate[bot]
764a60b1db
chore(deps): update data-mesher digest to 0593ae1
2025-04-15 05:00:13 +00:00
renovate[bot]
de337ad671
chore(deps): update sops-nix digest to 6115430
2025-04-14 23:10:10 +00:00
renovate[bot]
bf11a1a079
chore(deps): update typescript-eslint monorepo to v8.30.1
2025-04-14 20:20:16 +00:00
renovate[bot]
7b43226b01
chore(deps): update typescript-eslint monorepo to v8.30.0
2025-04-14 17:20:17 +00:00
Jörg Thalheim
1c3f408ce1
test_vars_deployment: skip on macOS for now
...
we can not run vms on macOS at the moment.
2025-04-14 15:47:55 +00:00
Michael Hoang
aec338a0f4
Merge pull request 'build-clan: expose Clan configuration as a module' ( #3303 ) from push-lsoyznsukqyq into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3303
2025-04-14 14:16:26 +00:00
Michael Hoang
95fd1ec7eb
build-clan: expose Clan configuration as a module
2025-04-14 16:04:06 +02:00
Michael Hoang
a07e282738
Merge pull request 'checks: test-backups -> backups' ( #3312 ) from push-nqvwsmllsyrx into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3312
2025-04-14 13:47:59 +00:00
Michael Hoang
443eb490e8
checks: test-backups -> backups
2025-04-14 15:39:25 +02:00
renovate[bot]
07d218cd4c
fix(deps): update dependency @tanstack/solid-query to v5.74.3
2025-04-14 13:00:13 +00:00
lassulus
f4870583dc
clan_cli test_vars: start refactoring to use caching
2025-04-14 14:28:59 +02:00
lassulus
db9097d5d0
clan_cli machines update: cache values for faster eval
2025-04-14 14:28:59 +02:00
lassulus
21c45e5ad9
clan_cli vars generate: prefetch all validationHashes for faster eval
2025-04-14 14:28:59 +02:00
Mic92
ecce8c20a1
Merge pull request 'don't error on macOS if sandbox for vars is missing' ( #3309 ) from macos-sandbox into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3309
2025-04-14 12:24:49 +00:00
Jörg Thalheim
ef5d62a1c1
don't error on macOS if sandbox for vars is missing
2025-04-14 14:11:51 +02:00
Mic92
9276b166f0
Merge pull request 'cache nix_config' ( #3306 ) from nix-config into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3306
2025-04-14 11:23:33 +00:00
Jörg Thalheim
7dc070b36f
cache nix_config
...
We often call this several times during execution.
At the moment we only use system at the moment, which is unlikely to
change.
2025-04-14 13:13:49 +02:00
renovate[bot]
3352348938
fix(deps): update dependency @tanstack/solid-query to v5.74.2
2025-04-14 11:00:13 +00:00
Luis Hebendanz
bec11ee23a
Merge pull request 'clan-cli: Don't eval 'modules' while getting templates. 'modules' can be not JSON serializable' ( #3280 ) from Qubasa/clan-core:fix_templates into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3280
2025-04-14 10:38:07 +00:00
Luis Hebendanz
51c2f0e74c
Merge pull request 'chore(clan/cli): remove --reflink=auto' ( #3291 ) from visualphoenix/clan-core:clan_cli_osx_cp_fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3291
2025-04-14 10:24:35 +00:00
renovate[bot]
bfdf40869d
chore(deps): lock file maintenance
2025-04-14 00:20:38 +00:00
renovate[bot]
f152e67067
chore(deps): lock file maintenance
2025-04-14 00:00:39 +00:00
renovate[bot]
9025619f39
fix(deps): update dependency @tanstack/solid-query to v5.74.0
2025-04-13 18:00:14 +00:00
renovate[bot]
8255857209
chore(deps): update nixpkgs digest to 18dd725
2025-04-13 16:30:10 +00:00
Michael Hoang
9818ddc687
Merge pull request 'machines: minor refactor of update' ( #3301 ) from push-swpwpzmlspko into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3301
2025-04-13 16:24:10 +00:00
Michael Hoang
54e3414cef
machines: minor refactor of update
2025-04-13 18:14:17 +02:00
renovate[bot]
26fc297598
chore(deps): update data-mesher digest to 25b5342
2025-04-13 12:20:15 +00:00
renovate[bot]
d65a72ab48
chore(deps): update dependency jsdom to v26.1.0
2025-04-13 10:40:16 +00:00
renovate[bot]
5b37eeb4d1
chore(deps): update sops-nix digest to 7e147a1
2025-04-13 04:40:14 +00:00
renovate[bot]
4956bcdbfd
chore(deps): update nixpkgs digest to f6db44a
2025-04-13 03:40:25 +00:00
renovate[bot]
7abb7dcd12
chore(deps): update data-mesher digest to 3d421cc
2025-04-13 03:20:14 +00:00
renovate[bot]
fc85ff9b28
chore(deps): update data-mesher digest to fd210d7
2025-04-13 02:50:09 +00:00
renovate[bot]
1ef6133fa3
chore(deps): update nixpkgs digest to 52d0ede
2025-04-13 02:10:24 +00:00
Raymond Barbiero
ba7bec1fe1
chore(clan/cli): remove --reflink=auto
2025-04-12 19:41:43 -04:00
renovate[bot]
2807fb6244
chore(deps): update nix-darwin digest to 43975d7
2025-04-12 17:40:13 +00:00
renovate[bot]
d69ae6049a
chore(deps): update data-mesher digest to 35cc96c
2025-04-12 15:40:25 +00:00
renovate[bot]
d3615e9f60
chore(deps): update nixpkgs digest to 2349f9d
2025-04-12 15:20:27 +00:00
renovate[bot]
28effcb096
fix(deps): update tanstack-query monorepo to v5.73.3
2025-04-12 14:40:16 +00:00
renovate[bot]
be7e95cc25
chore(deps): update data-mesher digest to ea73779
2025-04-12 12:50:21 +00:00
renovate[bot]
ed52cc019f
chore(deps): update nixpkgs digest to 642c54c
2025-04-12 12:30:26 +00:00
Michael Hoang
21d376a9b6
Merge pull request 'chore(deps): update nixpkgs digest to d19cf9d' ( #3273 ) from renovate/nixpkgs-digest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3273
2025-04-12 11:19:32 +00:00
Michael Hoang
f086fe01da
treewide: switch back to pkgs.nix
2025-04-12 13:15:53 +02:00
renovate[bot]
fa10067473
chore(deps): update nixpkgs digest to d19cf9d
2025-04-12 11:00:13 +00:00
hsjobeki
6e5856d5ff
Merge pull request 'chore(checks/inventory): doogfood 'clan' flake-parts module into the test, instead of custom inventory logic' ( #3279 ) from hsjobeki/clan-core:clan-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3279
2025-04-12 10:49:05 +00:00
Johannes Kirschbauer
5e03a44937
fixup(checks/inventory): remove 'self' from clan settings; doesn't work in the nixos tests yet.
...
We need to reasearch why that is the case.
Removing the option for now to prevent weird bugs
2025-04-12 12:41:11 +02:00
renovate[bot]
bae744053a
chore(deps): update dependency @types/node to v22.14.1
2025-04-11 21:40:15 +00:00
Qubasa
af776f1efa
clan-cli: Fix failing tests. Add a big FIXME for clan.select
2025-04-11 23:36:02 +02:00
Luis Hebendanz
bfba638b1e
Merge pull request 'clan-cli: Fix single file upload in upload.py, add test for edge case' ( #3182 ) from Qubasa/clan-core:fix_single_file_upload into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3182
2025-04-11 17:14:35 +00:00
Qubasa
9097d5e6e0
clan-cli: Fix single file upload in upload.py, add test for edge case
2025-04-11 19:08:13 +02:00
Johannes Kirschbauer
02f630a25b
chore(checks): rename data-mesher test attributes
2025-04-11 13:53:04 +02:00
Johannes Kirschbauer
762cc5e7cb
chore(checks/inventory): doogfood 'clan' flake-parts module into the test, instead of custom inventory logic
2025-04-11 13:52:23 +02:00
renovate[bot]
e1e4c02b39
chore(deps): update data-mesher digest to 60f9395
2025-04-11 11:40:13 +00:00
hsjobeki
f94e3a20a4
Merge pull request 'chore(clan/cli): remove explizit dependency on jsonschema converter.' ( #3277 ) from hsjobeki/clan-core:chores into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3277
2025-04-10 21:10:43 +00:00
Johannes Kirschbauer
cf273d2209
chore(clan/cli): remove explizit dependency on jsonschema converter.
...
Regenerating the classes from json schema as part of the clan/cli is a bit redundant since we need to vendor the classes by hand anyways
The user can also not practically override the inventory options
I would disable this for now; until we really need it.
We now solely rely on CI checks failing if the classes are out of sync
2025-04-10 22:58:30 +02:00
hsjobeki
97c1dd7700
Merge pull request 'chore(clan/vars): make no-sandboxing message print a more explizit re-run command' ( #3276 ) from hsjobeki/clan-core:chores into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3276
2025-04-10 20:55:14 +00:00
Johannes Kirschbauer
ffb1d51fc4
chore(clan/vars): make no-sandboxing message print a more explizit re-run command
2025-04-10 22:39:27 +02:00
Luis Hebendanz
5342428fc6
Merge pull request 'vars: use writeShellApplication to shellcheck generators' ( #3270 ) from Qubasa/clan-core:rtunreal-shell_check_vargen into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3270
2025-04-10 19:07:42 +00:00
Qubasa
92d7b680c7
clan-cli: Fixup more failing tests because of quoting issues
2025-04-10 14:33:54 +02:00
renovate[bot]
3b90064a99
chore(deps): update data-mesher digest to 7af2bfe
2025-04-10 08:40:13 +00:00
Michael Hoang
cbc5cd69ad
Merge pull request 'flake: update nix-darwin owner' ( #3275 ) from push-osprlszlnnvr into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3275
2025-04-10 08:38:25 +00:00
Michael Hoang
168c9fb5f6
flake: update nix-darwin owner
2025-04-10 10:31:26 +02:00
renovate[bot]
b538d09f88
chore(deps): update dependency vite to v6.2.6
2025-04-10 06:40:17 +00:00
Qubasa
b3dcf7f641
clan-cli: Change shellcheck to shellcheck-minimal
2025-04-10 01:54:00 +02:00
renovate[bot]
001fb36e87
chore(deps): update nix-darwin digest to 113883e
2025-04-09 19:20:14 +00:00
Qubasa
67a135e7bc
formatter.nix: Exclude **/.mypy_cache/*
2025-04-09 19:44:00 +02:00
Qubasa
01439db065
formatter.nix: Exclude **/node_modules/*
2025-04-09 19:44:00 +02:00
Qubasa
f1855f80fc
clan-cli: Add shellcheck as a runtimeDependencie
2025-04-09 19:44:00 +02:00
RTUnreal
f4f7df312d
checks: fix shellcheck errors
2025-04-09 19:44:00 +02:00
RTUnreal
aad1c347d1
clanModules: fix shellcheck errors
2025-04-09 19:44:00 +02:00
RTUnreal
ee5957d8ee
pkgs/clan-cli: fix test which are using vars shellcheck
2025-04-09 19:44:00 +02:00
RTUnreal
91cb641efe
clanModules/borgbackup: fix shellcheck errors
2025-04-09 19:44:00 +02:00
RTUnreal
691a026929
clanModules/root-password: fix shellcheck errors
2025-04-09 19:44:00 +02:00
RTUnreal
83ec5a063a
vars: use writeShellApplication to shellcheck generators
2025-04-09 19:44:00 +02:00
hsjobeki
519c6cc05a
Merge pull request 'chore(clan/pytest): discover all test files in the tree' ( #3269 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3269
2025-04-09 17:16:56 +00:00
Johannes Kirschbauer
de587648f8
chore(clan/pytest): discover all test files in the tree
2025-04-09 18:54:57 +02:00
hsjobeki
bf06bdb38a
Merge pull request 'Reapply '( #3259 ) chore(buildClan): move machineClass option into inventory.machines submodule'' ( #3268 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3268
2025-04-09 16:50:15 +00:00
Johannes Kirschbauer
ab9c0d2904
fix(clan/machines): move machineClass attribute selector and add a unit test for class detection
2025-04-09 18:29:43 +02:00
Johannes Kirschbauer
35379d3b86
Reapply "Merge pull request 'chore(buildClan): move machineClass option into inventory.machines submodule' ( #3259 ) from hsjobeki/clan-core:buildclan-cleanup into main"
...
This reverts commit 62dfb23e41 .
2025-04-09 18:16:35 +02:00
hsjobeki
61aebf75c8
Merge pull request 'fix(checks/inventory): use buildClan instead of buildInventory' ( #3267 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3267
2025-04-09 16:14:06 +00:00
hsjobeki
d9c3af6c11
Merge pull request 'test(clan/inventory): test deserialization of different inventories' ( #3258 ) from hsjobeki/clan-core:inventory-serde into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3258
2025-04-09 16:07:58 +00:00
Johannes Kirschbauer
c344d57298
fix(checks/data-mesher): format, dont pass a duplicate data-mesher module
2025-04-09 18:03:04 +02:00
Johannes Kirschbauer
d7a83343e5
test(clan/inventory): test deserialization of different inventories
2025-04-09 18:00:00 +02:00
Johannes Kirschbauer
ec2aee3013
fix(eval/inventory): fix some test arguments to buildInventory
2025-04-09 17:38:06 +02:00
Johannes Kirschbauer
6f7d7e8d98
chore(checks/inventory): regenerate test vars
2025-04-09 17:32:29 +02:00
Johannes Kirschbauer
ac940aa8a1
fix(checks/inventory): use buildClan instead of buildInventory
2025-04-09 17:31:35 +02:00
Johannes Kirschbauer
05c45371af
feat(buildInventory): move instance resolution into buildInventory
...
Such that buildClan doesn't have to compose the results
buildInventory should be more self contained. But it is NOT meant a
public API! use buildClan argument 'inventory' instead
2025-04-09 17:31:35 +02:00
Mic92
fad4bfe593
Merge pull request 'speedup morph test' ( #3266 ) from morph-test into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3266
2025-04-09 15:28:20 +00:00
hsjobeki
11d88e51ab
Merge pull request 'treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib'' ( #3263 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3263
2025-04-09 15:10:42 +00:00
Jörg Thalheim
44a2643d17
speedup morph test
2025-04-09 17:06:34 +02:00
Jörg Thalheim
a714c72aff
checks/morph: strip test prefix
...
this is making it consistent with otther tests.
2025-04-09 16:58:48 +02:00
Michael Hoang
1d346046dc
Merge pull request 'chore(deps): update data-mesher digest to 81f65ea' ( #3256 ) from renovate/data-mesher-digest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3256
2025-04-09 14:53:32 +00:00
renovate[bot]
37dfb2ce93
chore(deps): update data-mesher digest to 81f65ea
2025-04-09 14:30:22 +00:00
renovate[bot]
4d655f3ce1
fix(deps): update tanstack-query monorepo to v5.72.2
2025-04-09 14:20:16 +00:00
Mic92
0516ef78a2
Merge pull request 'Revert "Merge pull request 'chore(buildClan): move machineClass option into inventory.machines submodule' ( #3259 ) from hsjobeki/clan-core:buildclan-cleanup into main"' ( #3264 ) from revert-machine-update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3264
2025-04-09 14:11:21 +00:00
Jörg Thalheim
62dfb23e41
Revert "Merge pull request 'chore(buildClan): move machineClass option into inventory.machines submodule' ( #3259 ) from hsjobeki/clan-core:buildclan-cleanup into main"
...
This reverts commit 11ba13df67 , reversing
changes made to 04f9aa3ae0 .
2025-04-09 16:08:39 +02:00
Mic92
b66317af04
Merge pull request 'feat(clan-cli): support multiple keys for a user' ( #3230 ) from feat/vars-multiple-user-secrets into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3230
2025-04-09 13:05:24 +00:00
hsjobeki
11ba13df67
Merge pull request 'chore(buildClan): move machineClass option into inventory.machines submodule' ( #3259 ) from hsjobeki/clan-core:buildclan-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3259
2025-04-09 12:57:48 +00:00
Johannes Kirschbauer
81211af474
fix(python/inventory): add machineClass field
2025-04-09 12:50:43 +00:00
Johannes Kirschbauer
68ca94d1ee
chore(buildClan): move machineClass option into inventory.machines submodule
2025-04-09 12:50:43 +00:00
Mic92
04f9aa3ae0
Merge pull request 'checks/installation: restore the install without system aspect' ( #3261 ) from flakiness into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3261
2025-04-09 11:39:17 +00:00
Jörg Thalheim
a6ea7b692d
checks/installation: restore the install without system aspect
2025-04-09 11:32:28 +00:00
Brian McGee
ed5fc20069
feat(clan-cli): support multiple keys for a user
2025-04-09 09:58:58 +00:00
Mic92
7e5505bd71
Merge pull request 'installation: speed up by installing to localhost' ( #3255 ) from flakiness into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3255
2025-04-09 09:58:43 +00:00
Jörg Thalheim
2942bae31b
don't expose all clan-depenencies as their own check attributes
...
this is expensive in CI to display.
2025-04-09 09:52:56 +00:00
Jörg Thalheim
20f00c938f
hardware: only include sshpass if we are actually using it.
2025-04-09 09:52:56 +00:00
Jörg Thalheim
5968ee1195
installation: use clan-cli-full so that nix doesn't try to evaluate deps
2025-04-09 09:52:56 +00:00
Jörg Thalheim
c2f7bf3fef
checks/installation: move updating hardware configuration to it's own test
...
for some reason those are very slow. Moving them to their own test
breaks down the critical path.
2025-04-09 09:52:56 +00:00
Jörg Thalheim
7308af0a85
installation: speed up by installing to localhost
...
we test other types of installation already in nixos-anywhere so we can
speed up this test quite a bit by not having a seperate machine to
install to.
2025-04-09 09:36:46 +00:00
Johannes Kirschbauer
a6a79e83a0
treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib'
2025-04-09 11:32:46 +02:00
DavHau
476dcb4140
sops: prioritize SOPS_AGE_KEY_FILE over local key
...
... instead of loading both keys and raise an error
This is important for testing when one wants to override SOPS_AGE_KEY_FILE
New prio: `SOPS_AGE_KEY` > `SOPS_AGE_KEY_FILE` > `~/.config/sops/age/keys.txt`
2025-04-09 08:45:34 +00:00
DavHau
77ab4f7208
vars: add feature --no-sandbox
...
Raise warning if sandbox cannot be used -> request user to run with --no-sandbox
2025-04-09 15:02:20 +07:00
pinpox
cf874de094
Merge pull request 'Fix clan.service docs format' ( #3254 ) from fix-service-docs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3254
2025-04-09 06:48:30 +00:00
Pablo Ovelleiro Corral
0d16ebf43e
Fix clan.service docs format
2025-04-09 08:29:19 +02:00
renovate[bot]
bc098f7796
chore(deps): update nixpkgs digest to b2b0718
2025-04-09 06:10:32 +00:00
Mic92
157245b4b0
Merge pull request 'chore(deps): update disko digest to 76c0a6d' ( #3252 ) from renovate/disko-digest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3252
2025-04-08 21:32:00 +00:00
Mic92
269cbd40fa
Merge pull request 'chore(deps): update data-mesher digest to a592e34' ( #3245 ) from renovate/data-mesher-digest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3245
2025-04-08 21:31:08 +00:00
renovate[bot]
17f54e5297
chore(deps): update disko digest to 76c0a6d
2025-04-08 21:20:16 +00:00
renovate[bot]
3cbcc284c8
chore(deps): update data-mesher digest to a592e34
2025-04-08 21:20:13 +00:00
hsjobeki
b8d9b795ff
Merge pull request 'docs(authoring/modules): add examples for dependency injection' ( #3249 ) from hsjobeki/clan-core:docs-authoring into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3249
2025-04-08 21:10:52 +00:00
Johannes Kirschbauer
748cdb871e
docs(authoring/modules): add examples for dependency injection
2025-04-08 20:56:02 +00:00
hsjobeki
39cf69a661
Merge pull request 'chore(lib/getModuleClass): remove unused library function' ( #3250 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3250
2025-04-08 20:54:46 +00:00
Johannes Kirschbauer
c357cfa29f
chore(lib/buildClan): remove dependencies {nixpkgs,nix-darwin} from the clanLib file
2025-04-08 22:13:46 +02:00
Johannes Kirschbauer
f399aad06e
chore(lib/getModuleClass): remove unused library function
2025-04-08 22:09:10 +02:00
hsjobeki
2ad4cf8758
Merge pull request 'pkgs/cli: Move the test folder inside the python module' ( #2973 ) from kenji/clan-core:split-testing-up into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2973
2025-04-08 20:06:59 +00:00
hsjobeki
f60da91dea
Merge pull request 'docs(authoring): restructure authoring guides' ( #3248 ) from hsjobeki/clan-core:docs-authoring into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3248
2025-04-08 19:58:59 +00:00
hsjobeki
aa75cc4777
Merge pull request 'chore(inventory/services): dont check _class in our logics. Let the error eccour in the final evaluation.' ( #3236 ) from hsjobeki/clan-core:role-settings into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3236
2025-04-08 19:49:46 +00:00
Mic92
0e58ff85f5
Merge pull request 'devshells: name shells for clarity' ( #3240 ) from Lehmanator/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3240
2025-04-08 19:45:20 +00:00
Johannes Kirschbauer
ac5effe435
fix(clan_app/test): fixup after rebase
2025-04-08 21:38:55 +02:00
Johannes Kirschbauer
b4f63b8835
docs(authoring): restructure authoring guides
...
Mainly because we have two module specs now and they will remain
valid for a while. We need to keep the older format documented for a while
2025-04-08 21:32:19 +02:00
Sam Lehman
e0a6ed3d49
devshells: name shells for clarity
2025-04-08 19:31:30 +00:00
Mic92
2c34f58a96
Merge pull request 'installation: use ip addresses to decrease flakiness' ( #3247 ) from flakiness into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3247
2025-04-08 19:31:12 +00:00
Jörg Thalheim
ce4a646927
installation: use ip addresses to decrease flakiness
2025-04-08 21:19:47 +02:00
Mic92
89afec1532
Merge pull request 'flash: test existing mount with spaces' ( #3243 ) from fix-mounting into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3243
2025-04-08 18:55:05 +00:00
Jörg Thalheim
c61c1af18e
replace original installation test with installation-without-system
2025-04-08 20:41:31 +02:00
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
Johannes Kirschbauer
cb001ec72b
fix(clan_cli/tests): fix some imports after rebase
2025-04-08 20:26:38 +02:00
Jörg Thalheim
bbcc7f6e3b
flash: test existing mount with spaces
2025-04-08 20:16:23 +02:00
Jörg Thalheim
a68f50fde3
bump disko to fix quoting issue
2025-04-08 20:16:22 +02:00
Johannes Kirschbauer
e9846d6cb9
Tests: reconfigure pytest test folder after moving it into clan_cli
2025-04-08 20:13:13 +02:00
Johannes Kirschbauer
5273304915
Tests: exclude test folder itself from autmatic dataclass checks
2025-04-08 20:12:03 +02:00
a-kenji
309c132b63
pkgs/cli: Move the test folder inside the python module
...
Move the `tests` folder to `clan_cli/tests`.
As we now want part of our tests to live next to the functions that are
tested - tests that are not in the `/tests` module also need access to
the configured test fixtures that are exposed by the `pytest_plugins`
declaration.
The following folder structure doesn't support this model:
```
├── clan_cli
│ ├── api
│ │ └── api_init_test.py
├── tests/
│ ├── conftest.py
│ └── ...
```
Here `api_init_test.py` even when importing the test functions will not
have the fixtures configured.
There is a way to configure python to import the fixtures from another
[`project/module`](https://docs.pytest.org/en/stable/how-to/fixtures.html#using-fixtures-from-other-projects ), but this seems to *generally* be discouraged.
So moving the `conftest.py` to the toplevel and the `/tests` folder into
the toplevel seems to be a sensible choice choice.
2025-04-08 20:12:01 +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
renovate[bot]
a10527a69d
fix(deps): update tanstack-query monorepo to v5.72.0
2025-04-07 09:40:15 +00:00
renovate[bot]
3c15d2e3d8
chore(deps): update data-mesher digest to aea65b1
2025-04-07 07:20:13 +00:00
renovate[bot]
ddce636e3b
chore(deps): update data-mesher digest to 54bbd42
2025-04-07 00:40:13 +00:00
renovate[bot]
fb8286b297
chore(deps): update sops-nix digest to 523f58a
2025-04-06 07:10:20 +00:00
renovate[bot]
274f4e318c
chore(deps): update data-mesher digest to 3239dc2
2025-04-06 06:50:09 +00:00
Mic92
e0b14bc21c
Merge pull request 'only compute final_script and validation hashes once' ( #3206 ) from fix-eval into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3206
2025-04-05 06:44:28 +00:00
renovate[bot]
423bf6f17b
chore(deps): update dependency typescript to v5.8.3
2025-04-05 00:20:15 +00:00
renovate[bot]
e2dda487a2
chore(deps): update dependency eslint to v9.24.0
2025-04-04 19:40:15 +00:00
renovate[bot]
d688250967
chore(deps): update dependency @eslint/js to v9.24.0
2025-04-04 19:00:15 +00:00
Jörg Thalheim
64346bacc8
only compute final_script and validation hashes once
2025-04-04 18:31:12 +02:00
Jörg Thalheim
7ed669a093
don't use python3 in python's callPackage scope
2025-04-04 18:31:12 +02:00
Mic92
51c347bd5f
Merge pull request 'ssh/upload: fix shell quoting' ( #3205 ) from default-groups into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3205
2025-04-04 15:27:17 +00:00
Jörg Thalheim
0f4c897d41
ssh/upload: fix shell quoting
2025-04-04 15:10:09 +00:00
renovate[bot]
3cadd0849a
fix(deps): update dependency @tanstack/solid-query to v5.71.10
2025-04-04 13:00:15 +00:00
hsjobeki
b0d8d1f195
Merge pull request 'chore(lib/select): move into subfolder with a test file' ( #3175 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3175
2025-04-04 12:32:32 +00:00
Johannes Kirschbauer
f326c307eb
feat(lib/inventory): fix arguments discrepancy on perInstance and perMachine
2025-04-04 14:22:36 +02:00
Johannes Kirschbauer
6c8d2d3cb5
docs(inventory/instances): init guide for setting up the new service model
2025-04-04 14:22:35 +02:00
Johannes Kirschbauer
6d4bbc3e92
chore(lib/select): init simple test
2025-04-04 14:06:05 +02:00
renovate[bot]
74f66e199e
chore(deps): update sops-nix digest to cff8437
2025-04-04 09:00:32 +00:00
renovate[bot]
fb384bd261
chore(deps): update treefmt-nix digest to 815e412
2025-04-04 08:40:26 +00:00
renovate[bot]
95a860bd29
chore(deps): update sops-nix digest to 9bc9b59
2025-04-04 08:20:25 +00:00
renovate[bot]
17354a6341
chore(deps): update data-mesher digest to 7656e00
2025-04-04 08:00:13 +00:00
renovate[bot]
b4f8eea673
chore(deps): update data-mesher digest to d4464c9
2025-04-03 23:50:09 +00:00
renovate[bot]
9c744f1e0e
chore(deps): update data-mesher digest to faaaf66
2025-04-03 22:20:26 +00:00
renovate[bot]
173c0f5dac
fix(deps): update dependency @tanstack/solid-query to v5.71.9
2025-04-03 22:00:14 +00:00
renovate[bot]
f62a109364
chore(deps): update actions/create-github-app-token action to v2
2025-04-03 19:50:10 +00:00
renovate[bot]
1c0a2a0fa2
fix(deps): update dependency @tanstack/solid-query to v5.71.8
2025-04-03 16:40:15 +00:00
renovate[bot]
3f651dbfbd
chore(deps): update data-mesher digest to 83cc954
2025-04-03 12:20:13 +00:00
Mic92
84b104115d
Merge pull request 'docs/secrets: mention defaultGroups option' ( #3193 ) from default-groups into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3193
2025-04-03 12:12:01 +00:00
Jörg Thalheim
f1cd85f281
docs/secrets: mention defaultGroups option
2025-04-03 14:02:05 +02:00
renovate[bot]
d978278733
chore(deps): update treefmt-nix digest to 57dabe2
2025-04-03 11:30:11 +00:00
DavHau
9682a22c9a
update nixos-facter-modules for bugfix
2025-04-03 17:31:32 +07:00
DavHau
ccaf67e477
inventory tests: set machine.name automatically
2025-04-03 17:29:07 +07:00
DavHau
2ed69d7ef8
workaround bug in docs rendering if machine.name is not set
2025-04-03 17:29:07 +07:00
DavHau
a88167f456
remove some references to config in options
2025-04-03 17:29:07 +07:00
DavHau
e897399e34
remove definitions of clan.core.settings.machine.name on tests
2025-04-03 17:29:07 +07:00
DavHau
73d14e078e
remove default for clan.core.settings.machine.name and make readOnly
...
There is not reason that there needs to be a default. Machines are usually defined as an attrset, so there is no reason to have a default.
Also make this readOnly as we never want to override it.
2025-04-03 17:29:07 +07:00
renovate[bot]
51d39a4c8c
chore(deps): update dependency vite to v6.2.5
2025-04-03 10:00:27 +00:00
renovate[bot]
2900c8c210
chore(deps): update nixos-facter-modules digest to 58ad969
2025-04-03 09:40:14 +00:00
renovate[bot]
77ebd5a513
fix(deps): update tanstack-query monorepo
2025-04-03 08:40:30 +00:00
renovate[bot]
9e73001ffb
chore(deps): update dependency @types/node to v22.14.0
2025-04-03 08:20:25 +00:00
renovate[bot]
a178769063
chore(deps): update data-mesher digest to 9959605
2025-04-03 08:00:24 +00:00
renovate[bot]
25b985ac01
chore(deps): update disko digest to 329d3d7
2025-04-03 07:40:29 +00:00
renovate[bot]
fe02063555
chore(deps): update sops-nix digest to 4521de6
2025-04-03 07:10:16 +00:00
Michael Hoang
907650610b
Merge pull request 'networking: don't set targetHost if there's only a hostname' ( #3184 ) from push-ovzouzrtzkpx into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3184
2025-04-03 07:07:38 +00:00
Michael Hoang
4442dbd871
networking: don't set targetHost if FQDN is not set
...
This will change in the future once we finish the networking Clan module
and we'll have a reliable way of addressing every node automagically.
Until then, this will have to do.
2025-04-03 08:43:10 +02:00
Michael Hoang
81ad9a5e4a
Merge pull request 'cli: improve --help documentation' ( #3186 ) from push-qnptotlvsnyq into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3186
2025-04-03 06:39:29 +00:00
Michael Hoang
bbe12002d8
cli: managed by clan -> managed by Clan
2025-04-03 00:25:51 +09:00
Michael Hoang
2db14e0ffa
cli: machines update [MACHINE] -> machines update [MACHINES]
2025-04-03 00:25:51 +09:00
Johannes Kirschbauer
788d9b9670
feat(inventory/instances): prevent modules without explizit class from beeing used
2025-04-02 14:57:21 +02:00
Johannes Kirschbauer
0ec63de3e6
feat(buildClan): add clan.modules as output
2025-04-02 13:38:38 +02:00
renovate[bot]
6ccdfe278d
chore(deps): update data-mesher digest to fd8dd31
2025-04-02 11:20:28 +00:00
renovate[bot]
2ba8b7ec3b
chore(deps): update treefmt-nix digest to 18bed67
2025-04-02 11:00:15 +00:00
Johannes Kirschbauer
2efe1ae241
chore(lib/introspection): add comment about upstream PRs, that allows removing features
2025-04-02 12:38:28 +02:00
Johannes Kirschbauer
69078433cd
chore(lib/select): move into subfolder with a test file
2025-04-02 12:37:49 +02:00
renovate[bot]
7825fe981f
fix(deps): update dependency @tanstack/solid-query to v5.71.3
2025-04-02 10:00:15 +00:00
hsjobeki
4dde845c4d
Merge pull request 'lib-cleanup' ( #3173 ) from hsjobeki/clan-core:lib-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3173
2025-04-02 09:34:47 +00:00
Johannes Kirschbauer
2715c398cc
fix(inventory/interface): use explizit file dependency, until dependency injection works properly
2025-04-02 11:12:16 +02:00
Johannes Kirschbauer
2ab53b05fe
chore(lib/treewide): cleanup directory struture of lib. See lib/readme.md for details
2025-04-02 11:11:21 +02:00
hsjobeki
ee96df8c53
Merge pull request 'chore(buildClan): remove dependency on clan-core in the lib function' ( #3167 ) from hsjobeki/clan-core:clan-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3167
2025-04-02 09:09:28 +00:00
Johannes Kirschbauer
975390f948
fix(test/vars): include lib into test closure
2025-04-02 10:31:16 +02:00
Johannes Kirschbauer
f842023ea3
chore(lib/readme): use real-world example for directory structure vision
2025-04-02 09:56:30 +02:00
Johannes Kirschbauer
81898996f4
chore(buildClan): make buildClan and flake-parts return identical outputs
2025-04-02 09:56:28 +02:00
Johannes Kirschbauer
3fdcb4e5cc
fix(computed-tags): typo
2025-04-02 09:49:54 +02:00
Johannes Kirschbauer
2b392866d6
chore(buildClan): remove dependency on clan-core in the lib function
2025-04-02 09:49:54 +02:00
renovate[bot]
3fab3e60d7
chore(deps): update data-mesher digest to a0c39f6
2025-04-02 03:30:10 +00:00
renovate[bot]
f9fe6006a8
chore(deps): update data-mesher digest to 463cc58
2025-04-02 02:10:11 +00:00
renovate[bot]
2a1ce79cf6
chore(deps): update flake-parts digest to c621e84
2025-04-01 23:50:10 +00:00
renovate[bot]
337876293b
chore(deps): update dependency @types/node to v22.13.17
2025-04-01 16:40:29 +00:00
renovate[bot]
6040479ce1
chore(deps): update disko digest to b36e876
2025-04-01 16:30:11 +00:00
hsjobeki
898a11cd3d
Merge pull request 'chore(lib/buildClan): clean up and turn into a 'module'' ( #3166 ) from hsjobeki/clan-core:clan-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3166
2025-04-01 14:46:44 +00:00
Johannes Kirschbauer
11701d5607
feat(lib/buildClan): turn lib/build-clan into a 'buildClanModule' with sub-features such as 'buildClan' and 'flakePartsModule'
2025-04-01 15:39:12 +02:00
Johannes Kirschbauer
9a7ab66b3b
chore(buildClan): set clanInternals.modules to clanInternals.clanModules
2025-04-01 15:36:37 +02:00
renovate[bot]
c8a45527e3
fix(deps): update dependency @tanstack/solid-query to v5.71.2
2025-04-01 13:00:29 +00:00
renovate[bot]
91bcdf8206
chore(deps): update sops-nix digest to e7f4d7e
2025-04-01 12:40:18 +00:00
Johannes Kirschbauer
ffaf87b881
chore(buildClan): rename eval.nix to function-adapter.nix to make its shallows purpose more clear
2025-04-01 14:33:55 +02:00
hsjobeki
de9b42be2f
Merge pull request 'feat(inventory): remove tag settings for now' ( #3158 ) from hsjobeki/clan-core:clan-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3158
2025-04-01 12:30:25 +00:00
renovate[bot]
f3b3f638a9
chore(deps): update data-mesher digest to 17c0fea
2025-04-01 12:00:14 +00:00
Johannes Kirschbauer
84cd0d0310
test(inventory/instnces): add tests for 'perInstance' arguments
2025-04-01 12:50:04 +02:00
renovate[bot]
d497975cea
chore(deps): update dependency solid-devtools to ^0.34.0
2025-04-01 10:20:21 +00:00
renovate[bot]
7ace37dfa0
chore(deps): update dependency @types/node to v22.13.16
2025-04-01 09:40:17 +00:00
Johannes Kirschbauer
f1eb08d224
feat(inventory): remove tag settings for now
2025-04-01 11:04:51 +02:00
renovate[bot]
f99776d4b1
chore(deps): update sops-nix digest to 49cffb8
2025-04-01 08:30:12 +00:00
renovate[bot]
559cd19274
chore(deps): update data-mesher digest to 8663e47
2025-04-01 07:10:10 +00:00
renovate[bot]
f2a0dc8b8b
chore(deps): update dependency @types/node to v22.13.15
2025-04-01 05:40:15 +00:00
Luis Hebendanz
bf91ba26b6
Merge pull request 'clan-cli: Fix deployment as non root edgecase' ( #3153 ) from Qubasa/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3153
2025-03-31 18:37:59 +00:00
Qubasa
6f13b3a29c
clan-cli: Fix deployment as non root edgecase
2025-03-31 20:25:05 +02:00
renovate[bot]
081460750d
chore(deps): update typescript-eslint monorepo to v8.29.0
2025-03-31 17:20:16 +00:00
renovate[bot]
b600968aad
chore(deps): update nixpkgs digest to 63158b9
2025-03-31 16:50:20 +00:00
renovate[bot]
685b460d7e
chore(deps): update data-mesher digest to fbacb64
2025-03-31 16:30:10 +00:00
renovate[bot]
446ebb8e33
chore(deps): update dependency vitest to v3.1.1
2025-03-31 10:20:18 +00:00
renovate[bot]
c6f25ee58a
fix(deps): update dependency @tanstack/solid-query to v5.71.1
2025-03-31 09:50:24 +00:00
renovate[bot]
0b7d15fefb
chore(deps): update dependency vite to v6.2.4
2025-03-31 09:40:16 +00:00
DavHau
d53b62170a
inventory test framework: init
...
Add nixos test module checks/lib/test-inventory-nix
accepts new option `inventory` and creates machines accordingly with correct imports
2025-03-31 13:39:23 +07:00
renovate[bot]
dcb2231332
chore(deps): update data-mesher digest to bf8c544
2025-03-31 00:20:25 +00:00
renovate[bot]
725eeb87ae
chore(deps): lock file maintenance
2025-03-31 00:00:41 +00:00
hsjobeki
66df677fd2
Merge pull request 'chore(lib): prepare for refactoring into clanLib' ( #3141 ) from hsjobeki/clan-core:clan-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3141
2025-03-30 15:51:17 +00:00
Johannes Kirschbauer
f7d15215ea
feat(clanLib): expose clanInternals.clanLib
...
This is usefully for:
- As api via python
- for testing clanLib downstream
2025-03-30 17:07:11 +02:00
Johannes Kirschbauer
c25574bebd
fix(lib/evalClan): evalClan is an explizit lib attribute
2025-03-30 17:07:11 +02:00
Johannes Kirschbauer
fe5796ba17
feat(inventory/instances): only warn if instances is populated
2025-03-30 17:07:11 +02:00
Johannes Kirschbauer
f2e89d27fe
feat(lib/inventory): use clanLib instead of clan-core as internal specialArg. This has the benefit of beeing more narrow scoped.
2025-03-30 17:07:09 +02:00
Johannes Kirschbauer
06dd2ebf8c
feat(lib/modules): remove dependency on self
2025-03-30 16:12:01 +02:00
Johannes Kirschbauer
40740860c0
feat(lib): init callLib; helper to bootstrap clanLib
2025-03-30 16:11:04 +02:00
Johannes Kirschbauer
89bc39869c
chore(lib): prepare for refactoring into clanLib
2025-03-30 15:56:54 +02:00
hsjobeki
84d0a2f2f0
Merge pull request 'enable clan services for machines' ( #3134 ) from hsjobeki/clan-core:clan-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3134
2025-03-30 13:54:11 +00:00
Johannes Kirschbauer
1d07737989
docs(lib): init readme with folder and testing conventions
2025-03-30 15:29:05 +02:00
Johannes Kirschbauer
9d386485dd
chore(auto-imports): Remove the auto-import feature. There will be a replacement, to make imports explicit"
2025-03-30 15:29:05 +02:00
Johannes Kirschbauer
ee9ae9c76d
fix(eval/tests): distributed-services: don't abort on warn in tests"
2025-03-30 15:29:05 +02:00
Johannes Kirschbauer
d4d4d77d2d
fix(tests): include 'lib' always as a whole
2025-03-30 15:29:05 +02:00
Johannes Kirschbauer
c0ebad1cd9
feat(inventory/instances): add wip warning
2025-03-30 15:29:05 +02:00
Johannes Kirschbauer
86d0c95da7
feat(inventory/instances): improve error location
2025-03-30 15:29:05 +02:00
Johannes Kirschbauer
0fb1b5c5ce
feat(inventory/instances): add service result to nixos machines
2025-03-30 15:29:05 +02:00
renovate[bot]
dc0349e835
fix(deps): update dependency @tanstack/solid-query to v5.71.0
2025-03-30 13:00:14 +00:00
renovate[bot]
cc8a74b195
chore(deps): update data-mesher digest to 4d139ac
2025-03-30 09:50:10 +00:00
renovate[bot]
046fe0df36
chore(deps): update nixpkgs digest to eb0e0f2
2025-03-30 09:10:24 +00:00
lassulus
3f948fdbd4
Merge pull request 'Make Generator validation more dynamic' ( #3052 ) from tangential/clan-core:dynamic-vars-generator-validation into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3052
2025-03-30 07:00:43 +00:00
Jonathan Thiessen
eb35e6ea21
Make Generator's validation dynamic
...
* Switch `Generator`'s `validation` from a regular property to
an `@property` annotated method backed by `Machine`'s `eval_nix()`.
* Ensure that `Machine`'s flake cache is flushed after each
effectful generator execution (rather than only after all
generators have been executed).
2025-03-30 04:33:30 +00:00
Jonathan Thiessen
4a0e1b3b6b
Add dependent vars generator dynamic validation test
2025-03-30 04:33:30 +00:00
Jonathan Thiessen
1b8974d167
Fix cached None support in FlakeCacheEntry
...
Previously, you could cache None values; however,
insertion wasn't idempotent/identical reinsertion
would lead to errors due to missing None checks.
2025-03-30 04:33:30 +00:00
Jonathan Thiessen
5e2b5fe213
Add overlapping (consistent) flake cache insert test
...
* Additionally, update `insert`'s input type hint to support None values
(as they are already selectable and (one shot) insertable).
This is necessary to appease the linter wrt the added test.
2025-03-30 04:33:30 +00:00
renovate[bot]
74fb3abbc7
chore(deps): update sops-nix digest to 8e87388
2025-03-30 04:00:13 +00:00
Luis Hebendanz
f2b04e74f1
Merge pull request 'clan-cli: Fix deployment as non root with a buildHost set' ( #3132 ) from Qubasa/clan-core:fix_target_host_as_non_root into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3132
2025-03-29 16:56:49 +00:00
hsjobeki
d3ae684575
Merge pull request 'init inventory.instances and clan.service modules' ( #3102 ) from hsjobeki/clan-core:clan-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3102
2025-03-29 16:22:30 +00:00
Johannes Kirschbauer
5b294e7651
chore(ui): ignore type error in unfinished features
2025-03-29 16:45:05 +01:00
Johannes Kirschbauer
40ae510075
test(inventory/legacy): don't need to support clanModules
2025-03-29 16:35:43 +01:00
Johannes Kirschbauer
48d910f11f
fix(auto-imports): disable since this is not needed anymore and causing collision with the new module type
2025-03-29 16:24:48 +01:00
renovate[bot]
f242b9a35c
chore(deps): update data-mesher digest to 734883c
2025-03-29 15:20:14 +00:00
Johannes Kirschbauer
978822d40a
test(inventory/instances): add tests for per machine resolution
2025-03-29 15:40:31 +01:00
Johannes Kirschbauer
fa6c3be21e
feat(inventory/instances): preserve settings modifiers close at source
2025-03-29 15:39:02 +01:00
brianmcgee
be61bac9af
Merge pull request 'data-mesher-module' ( #3086 ) from data-mesher-module into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3086
2025-03-29 14:07:42 +00:00
Pablo Ovelleiro Corral
42b58910a9
data-mesher: init module
...
Co-authored-by: Brian McGee <brian@bmcgee.ie >
2025-03-29 13:49:41 +00:00
Johannes Kirschbauer
a746b10578
chore: add description to {manifest, name} option
2025-03-29 14:33:44 +01:00
Johannes Kirschbauer
19341e4cb1
chore: format test, remove unused attributes
2025-03-29 14:27:52 +01:00
Johannes Kirschbauer
f4e06271ba
chore: rename unused attributes in inventory adapter
2025-03-29 14:27:27 +01:00
Johannes Kirschbauer
d93fe229b3
chore: remove unused attributes from flake-module
2025-03-29 14:27:04 +01:00
Johannes Kirschbauer
5fc62806b1
feat(classgen): convert only certain attributes
2025-03-29 14:22:34 +01:00
Johannes Kirschbauer
e0be2f3435
fix(cli/inventory): update classes
2025-03-29 13:25:19 +01:00
Johannes Kirschbauer
a69b81488b
fix(inventory/instances): fix jsonschema compatibility
2025-03-29 13:25:19 +01:00
Johannes Kirschbauer
b133a2407a
feat(clan/services): init recursive service module
2025-03-29 13:25:19 +01:00
Johannes Kirschbauer
68ae27899a
feat(clan/services): init test-suite for eval test
2025-03-29 13:25:19 +01:00
Johannes Kirschbauer
b83d3ecba2
feat(clan/services): init adapter function to convert inventory instances into clan.service module configurations
2025-03-29 13:25:19 +01:00
Johannes Kirschbauer
bec4317709
feat(inventory/instances): init instances as new attribute for adding distributed services
2025-03-29 13:25:19 +01:00
Johannes Kirschbauer
f37f15c482
feat(clan/services): init new clanInternals attribute 'distributedServices'
2025-03-29 13:25:19 +01:00
Johannes Kirschbauer
fae8ec318d
feat(inventory/modules): allow inline modules
2025-03-29 13:25:19 +01:00
Qubasa
8e2005f38c
clan-cli: Fix deployment as non root with a buildHost set
2025-03-28 18:47:36 +01:00
Mic92
94781bb358
Merge pull request 'clan_cli: fix support for non-root deployment user (from rtunreal)' ( #3124 ) from Qubasa/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3124
2025-03-28 17:26:33 +00:00
Jörg Thalheim
de740cf686
tests: add fake_sudo to sshd fixture
...
This allows to use the same code for both testing and real-world.
2025-03-28 17:14:22 +00:00
Qubasa
064edf61ef
test_secrets_upload: Don't prepend sudo inside test; Improve secret upload test
2025-03-28 17:14:22 +00:00
renovate[bot]
aaf58d7be8
chore(deps): update treefmt-nix digest to 29a3d7b
2025-03-28 15:50:19 +00:00
renovate[bot]
03f8e41291
chore(deps): update nixpkgs digest to 6c59633
2025-03-28 15:30:25 +00:00
renovate[bot]
43bd4403c6
fix(deps): update dependency @tanstack/solid-query to v5.70.0
2025-03-28 15:20:17 +00:00
renovate[bot]
ebee55ffdc
chore(deps): update nixpkgs digest to 25d1b84
2025-03-27 03:30:23 +00:00
renovate[bot]
47e9e5a8f0
chore(deps): update dependency @types/node to v22.13.14
2025-03-27 03:20:15 +00:00
Qubasa
d1a79653fe
checks/installation-without-system: modify to install through normal user instead of root
2025-03-26 18:37:31 +01:00
RTUnreal
351ce1414a
clan_cli: fix support for non-root deployment user
2025-03-26 18:37:31 +01:00
DavHau
e2ccd979ed
vars/prompts: print var name even if custom description is set
2025-03-26 10:48:05 +00:00
renovate[bot]
f5f3f96809
chore(deps): update treefmt-nix digest to 61c8834
2025-03-26 10:10:09 +00:00
Mic92
59253a9c71
Merge pull request 'ADR: init clan api as library decision record' ( #2975 ) from hsjobeki/clan-core:adr/architecture into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2975
2025-03-26 10:01:55 +00:00
Johannes Kirschbauer
aa03adc581
ADR: init clan api as library decision record
2025-03-26 09:52:05 +00:00
Mic92
ffd84d50f7
Merge pull request 'Fix(classgen): support number conversion from jsonschema' ( #3119 ) from hsjobeki/clan-core:class-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3119
2025-03-26 09:45:09 +00:00
Johannes Kirschbauer
679387e4ba
Fix(classgen): support number conversion from jsonschema
2025-03-25 19:27:01 +01:00
hsjobeki
1d60f94cc5
Merge pull request 'docs/configure: Remove reference to unfinished feature' ( #3097 ) from kenji/clan-core:docs-remove-upcoming into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3097
2025-03-25 18:12:09 +00:00
Mic92
1235177541
Merge pull request 'Enable all pytest without core' ( #3118 ) from enable-more-macos into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3118
2025-03-25 17:41:04 +00:00
Jörg Thalheim
5c08e9a38d
add missing lock around "flake" "lock"
2025-03-25 18:30:18 +01:00
Jörg Thalheim
28dd54d866
make gnupg a dependency of sops
...
if anything uses a gnupg key, we need the gnupg binary.
Sucks a bit, but at least it makes it work everywhere.
2025-03-25 18:30:18 +01:00
Jörg Thalheim
5baf37f7e9
fix gpg key fixture on macOS
...
macOS has length limitations for unix sockets, which are violated by the
default length of temporary directories.
2025-03-25 18:30:18 +01:00
Jörg Thalheim
ff669e2957
move git_repo fixture to its own file for consistency
2025-03-25 18:30:11 +01:00
Jörg Thalheim
8d4c1839e7
use pre-generate gpg key for tests
...
this is a bit faster.
2025-03-25 18:30:11 +01:00
Jörg Thalheim
0765d981c6
enable python tests without core on macOS
2025-03-25 18:29:49 +01:00
Jörg Thalheim
10c27a0152
skip sshd-based tests on macOS for now
2025-03-25 18:29:49 +01:00
Mic92
ccb5af9565
Merge pull request 'docs/index: Clear up API Reference description' ( #3098 ) from kenji/clan-core:docs-overview into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3098
2025-03-25 09:34:18 +00:00
renovate[bot]
828eff528a
chore(deps): lock file maintenance
2025-03-25 02:10:52 +00:00
renovate[bot]
cbf47580cf
chore(deps): update nixpkgs digest to 1750f3c
2025-03-25 01:50:24 +00:00
renovate[bot]
355ac57ccb
chore(deps): update nixpkgs digest to dd61313
2025-03-24 19:30:24 +00:00
renovate[bot]
227e293421
chore(deps): update typescript-eslint monorepo to v8.28.0
2025-03-24 17:20:18 +00:00
renovate[bot]
9b3621b516
chore(deps): update dependency @types/node to v22.13.13
2025-03-24 11:20:15 +00:00
renovate[bot]
62f09a450f
chore(deps): update dependency vite to v6.2.3
2025-03-24 10:30:17 +00:00
Michael Hoang
95282bd880
Merge pull request 'checks/flash: fix on aarch64-linux' ( #3109 ) from push-wyyyplplwnpy into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3109
2025-03-24 10:23:24 +00:00
Michael Hoang
7a49ec252e
checks/flash: support aarch64-linux
2025-03-24 19:13:20 +09:00
Michael Hoang
5f9ee97cab
Merge pull request 'checks/installation-without-system: support aarch64-linux' ( #3108 ) from push-wnsmqwtkplqw into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3108
2025-03-24 09:47:53 +00:00
Michael Hoang
c6be9bbf07
checks/installation-without-system: add aarch64-linux facter.json
...
This doesn't fix the test on `aarch64-linux` but brings it inline with
where `test-installation` fails.
2025-03-24 18:37:46 +09:00
Michael Hoang
d77ae5eed0
Merge pull request 'checks/backups: don't hardcode system' ( #3107 ) from push-unpltryrzlsx into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3107
2025-03-24 08:38:28 +00:00
Michael Hoang
3c2888edc7
checks: don't build test machines as they may be system-less now
2025-03-24 17:27:36 +09:00
Michael Hoang
b0f23353ef
checks/backups: don't hardcode system
2025-03-24 17:26:48 +09:00
renovate[bot]
3fccccc092
chore(deps): update dependency @types/node to v22.13.12
2025-03-24 06:40:15 +00:00
Michael Hoang
0a5d1bf322
Merge pull request 'checks: disable all failing aarch64-linux checks' ( #3104 ) from push-zqxwrttvxuqy into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3104
2025-03-24 04:01:16 +00:00
Michael Hoang
9ca5cb7bcc
checks: disable all failing aarch64-linux checks
2025-03-24 12:50:57 +09:00
renovate[bot]
cc1b356a94
chore(deps): update sops-nix digest to 67566fe
2025-03-23 04:00:13 +00:00
kenji
9aa8c1b8eb
Merge pull request 'docs/configure: Fix erroneous option attribute' ( #3099 ) from kenji/clan-core:docs-fix-3094 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3099
2025-03-22 23:27:16 +00:00
a-kenji
709d773768
docs/configure: Fix erroneous option attribute
...
Fixes: 3094
2025-03-22 13:05:55 -07:00
a-kenji
845abd1356
docs/index: Clear up API Reference description
...
The term "auto generated" gives leeway to the incorrect assumption
that this is not a curated reference that contains written documentation
especially for the rendered reference.
This is not the case.
2025-03-22 12:56:51 -07:00
a-kenji
2b4a4f2422
docs/configure: Remove reference to unfinished feature
2025-03-22 12:53:59 -07:00
Mic92
82da5b6734
Merge pull request 'don't add nixpkgs to nix registry to not conflict with nixpkgs' ( #3096 ) from nixpkgs-conflict into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3096
2025-03-22 16:16:27 +00:00
Jörg Thalheim
33a9fd8d3d
tests/installer/client: increase RAM
2025-03-22 17:07:52 +01:00
Jörg Thalheim
4beb097a95
don't add nixpkgs to nix registry to not conflict with nixpkgs
...
NixOS is already doing this for us.
2025-03-22 14:45:53 +01:00
renovate[bot]
b4cd62b9f8
chore(deps): update nixpkgs digest to 94c4dbe
2025-03-22 04:00:29 +00:00
renovate[bot]
ee7b98c34d
chore(deps): update sops-nix digest to b775692
2025-03-21 22:50:10 +00:00
renovate[bot]
8552d4b3bd
chore(deps): update dependency eslint to v9.23.0
2025-03-21 20:40:14 +00:00
renovate[bot]
375edcff81
chore(deps): update dependency @eslint/js to v9.23.0
2025-03-21 20:20:13 +00:00
renovate[bot]
3183b26777
chore(deps): update nixpkgs digest to bfa9810
2025-03-21 19:00:27 +00:00
Luis Hebendanz
0feacaf300
Merge pull request 'sshd: Fix missing cfg.fqdn regression' ( #3087 ) from Qubasa/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3087
2025-03-21 16:47:25 +00:00
Qubasa
6917021996
sshd: Fix missing cfg.fqdn regression
2025-03-21 17:45:25 +01:00
lassulus
3965f7b59f
Merge pull request 'clan-cli: cleanup broken deployment cache' ( #3066 ) from fix_caching into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3066
2025-03-21 15:49:22 +00:00
renovate[bot]
610a70e4f8
chore(deps): update nixpkgs digest to 7344a3b
2025-03-21 12:30:23 +00:00
Jörg Thalheim
6134eb0293
tests/sshd: add a 5 second timeout for sshd to start
2025-03-21 12:41:36 +01:00
renovate[bot]
62e9fe8f9f
chore(deps): update dependency @types/node to v22.13.11
2025-03-21 09:20:13 +00:00
renovate[bot]
5bc2d00014
chore(deps): update nixpkgs digest to 2a725d4
2025-03-20 21:20:28 +00:00
renovate[bot]
616b294b8c
chore(deps): update nixpkgs digest to 44e422b
2025-03-20 20:20:27 +00:00
Michael Hoang
2d7b92b3f9
Merge pull request 'networking: add a default value for targetHost' ( #3080 ) from push-rlvulrtxqkyq into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3080
2025-03-20 14:10:19 +00:00
Michael Hoang
0487670d30
networking: add a default value for targetHost
2025-03-20 22:45:19 +09:00
Michael Hoang
4cd174b268
Merge pull request 'sshd: trust own ed25519 host key as a known host' ( #3077 ) from push-opymuwrqqqvv into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3077
2025-03-20 13:44:25 +00:00
Michael Hoang
a8b257f32c
sshd: trust own ed25519 host key as a known host
2025-03-20 18:40:32 +09:00
Qubasa
047b767054
clan-cli: cleanup broken deployment cache
2025-03-20 00:17:36 -07:00
Michael Hoang
c74d23b799
Merge pull request 'checks: use pkgs.nixVersions.latest until pkgs.nix is 2.26+' ( #3076 ) from push-vswxxyynxtmz into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3076
2025-03-20 07:01:57 +00:00
Michael Hoang
850627c5c6
checks: use pkgs.nixVersions.latest until pkgs.nix is 2.26+
2025-03-20 15:52:13 +09:00
renovate[bot]
60d56c4e3b
chore(deps): update typescript-eslint monorepo to v8.27.0
2025-03-20 01:20:15 +00:00
renovate[bot]
4911901f7c
chore(deps): update sops-nix digest to 1770be8
2025-03-19 18:10:10 +00:00
Mic92
a96860a24b
Merge pull request 'pytests: use /tmp on macos to avoid unix socket issues' ( #3073 ) from nixpkgs-update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3073
2025-03-19 17:45:15 +00:00
Jörg Thalheim
c429b41d2e
pytests: use /tmp on macos to avoid unix socket issues
2025-03-19 18:35:38 +01:00
Mic92
fe305f7f47
Merge pull request 'Decisions/clanModules: Add example borgbackup as real world example' ( #3070 ) from hsjobeki/clan-core:decisions-01 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3070
2025-03-19 16:39:59 +00:00
Johannes Kirschbauer
591d397df9
Decisions/clanModules: Add example borgbackup as real world example
2025-03-19 16:39:52 +00:00
Mic92
8231979bae
Merge pull request 'Silence mypy error after nixpkgs update' ( #3072 ) from nixpkgs-update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3072
2025-03-19 16:39:32 +00:00
Jörg Thalheim
6899461d0d
disabe pytests on macOS for now
2025-03-19 17:33:27 +01:00
Jörg Thalheim
16b067d291
tests/fixtures_flakes: remove unused remote flag
2025-03-19 16:55:30 +01:00
Jörg Thalheim
93cbe62765
always resolve symlinks for TemporaryDirectory
...
On macOS mktemp returns a temporary directory in a symlink.
Nix has a bug where it won't accept path:// located in a symlink.
This avoid this issue by always resolving symlinks as returned by
TemporaryDirectory.
2025-03-19 16:47:18 +01:00
Jörg Thalheim
7fef29d7aa
make sshd test work on macOS
2025-03-19 15:55:20 +01:00
Jörg Thalheim
952d1facce
vm-manager: ignore interface between GObject and ListModel
2025-03-19 15:29:03 +01:00
Jörg Thalheim
a565a85a5e
clan-vm-manager: support basic devshell on macOS
2025-03-19 15:29:03 +01:00
renovate[bot]
3d5ef5e909
chore(deps): update nixpkgs digest to 3549532
2025-03-19 13:40:12 +00:00
Luis Hebendanz
a5c5033273
Merge pull request 'clan-cli: machines delete: delete the machine's vars and secrets' ( #2994 ) from lopter/clan-core:lo-machines-delete into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2994
2025-03-19 12:25:48 +00:00
Louis Opter
0ee0351e3e
clan-cli: add DavHau's explanation about the with_core pytest marker
...
See: https://git.clan.lol/clan/clan-core/pulls/2994#issuecomment-22542
2025-03-19 10:53:38 +00:00
Louis Opter
c02f19205f
clan-cli: tests: call SopsSetup.init while setting up fixtures
...
We do this by introducing `flake_with_sops` fixture, that calls the
init method ahead of the test. We did not want to do this in the `flake`
fixture since not all tests using the `flake` fixture need to have sops
setup.
2025-03-19 10:53:38 +00:00
Louis Opter
dbcb8d6a4c
clan-cli: don't try to delete a dir that doesn't exist in the pass vars backend
...
Do not crash in `delete_store`, if the machine has no vars, or the store
has been deleted already.
2025-03-19 10:53:38 +00:00
Louis Opter
039b309255
clan-cli: do not crash if a machine being deleted is missing from the inventory
...
We implement that by actually raising `KeyError` in `inventory.delete_by_path`
(as advertised in the docstring), since it makes more sense to catch a
`KeyError` than a generic `ClanError`.
2025-03-19 10:53:38 +00:00
Louis Opter
538374558d
clan-cli: machines delete: delete the machine's vars and secrets
...
When a machine is deleted with `clan machines delete`, remove its
vars and legacy secrets, and update any secrets that reference the
machine's key.
This command is a superset of `clan secrets machine delete`, and I am
wondering if we could remove the `clan secrets machine` subcommand,
unless there is an use case for having a machine defined without its
key, and any secrets/vars?
Note:
- This deletes the `ListSecretsOptions` dataclass, as it did not seem to
bring any value, especially since `list_secrets` was receiving its
individual members instead of the whole dataclass. We can always bring
it back if complexity grows to demand it.
2025-03-19 10:53:38 +00:00
Louis Opter
ef5ad09b2d
clan-cli: add delete and delete_store to StoreBase
...
- `delete` lets you delete a specific var under a specific generator;
- `delete_store` deletes an entire store.
The `delete` method could be useful to "garbage-collect" unused vars as
a machine's configuration changes.
The `delete_store` method can be used to delete all the vars for a
machine when the machine is deleted. The current behavior is to leave
everything behind.
Important point:
- `delete_store` needs to be idempotent because public and
"private"/"secret" vars for a machine can share the same physical
store (directory), and deleting either type of store (public or
private) will delete both.
2025-03-19 10:53:38 +00:00
Louis Opter
9780463e6a
clan-cli: add an integration test for clan machines delete
...
This tests the changes made to that command to clean-up vars and secrets
when a machine is deleted.
2025-03-19 10:53:38 +00:00
Louis Opter
cac4b1200c
clan-cli: tests/age_keys.py add notes, move function to check sops recipients
...
This supports the new integration test for `clan machines delete`.
2025-03-19 10:53:38 +00:00
Mic92
c8db27340e
Merge pull request 'Fix clan machines create' ( #3040 ) from Qubasa/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3040
2025-03-19 10:53:17 +00:00
Jörg Thalheim
31a9c74e88
deduplicate CLAN_CORE/CLAN_CORE_PATH environment variables
2025-03-19 10:30:52 +00:00
Qubasa
dc8bfab65d
clan-cli: Fix templates not downloading template, Make templates use Flake cache, Fix flake cache exception on conditional attribute, add more tests
2025-03-19 10:30:52 +00:00
DavHau
33abb7ecd7
docs: add guide for testing
2025-03-19 09:43:05 +00:00
renovate[bot]
fcbdae9d09
chore(deps): update treefmt-nix digest to adc195e
2025-03-19 08:10:09 +00:00
Michael Hoang
27b5680441
Merge pull request 'checks: ensure updating hardware config doesn't require system' ( #3067 ) from fix/update-hardware-config-without-system into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3067
2025-03-19 06:53:50 +00:00
Michael Hoang
f13971167f
checks: ensure updating hardware config doesn't require system
2025-03-19 15:28:52 +09:00
renovate[bot]
e75b5f3a2e
chore(deps): lock file maintenance
2025-03-18 23:10:46 +00:00
renovate[bot]
d5c0a2eb9c
chore(deps): update nixpkgs digest to 9bc8a90
2025-03-18 15:50:09 +00:00
renovate[bot]
8cc8d09a11
chore(deps): update treefmt-nix digest to b3b938a
2025-03-18 15:00:13 +00:00
Mic92
dfa3305450
Merge pull request 'nixpkgs-update' ( #3061 ) from nixpkgs-update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3061
2025-03-18 14:42:16 +00:00
Jörg Thalheim
94415dfd0e
use pathlib.iterdir() everywhere
2025-03-18 15:34:06 +01:00
renovate[bot]
6fb5bca801
chore(deps): update nixpkgs digest to 0964789
2025-03-18 14:20:23 +00:00
renovate[bot]
4162810ee1
chore(deps): update disko digest to 0d8c6ad
2025-03-18 14:08:30 +00:00
Mic92
0b3badb0ef
Merge pull request 'chore(deps): update dependency typescript to v5.8.2' ( #3058 ) from typescript into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3058
2025-03-18 14:00:32 +00:00
Jörg Thalheim
6a5954ad77
remove unused typescript directive
2025-03-18 14:52:22 +01:00
Mic92
02231b979b
Merge pull request 'Update eslint' ( #3057 ) from eslint into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3057
2025-03-18 13:51:36 +00:00
Jörg Thalheim
028f6a4d3d
prune npm deps
2025-03-18 14:43:30 +01:00
Jörg Thalheim
170908db7b
address eslint warnings
2025-03-18 14:40:16 +01:00
renovate[bot]
39e6534dbb
chore(deps): update typescript-eslint monorepo to v8
2025-03-18 14:26:21 +01:00
renovate[bot]
71809c1bdc
chore(deps): update dependency eslint to v9
2025-03-18 14:26:19 +01:00
Mic92
eecedf95e4
Merge pull request 'cli: increase timeout for pytest' ( #3056 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3056
2025-03-18 13:18:09 +00:00
Mic92
a208a9973c
Merge pull request 'flake: switch back to using main branch of sops-nix' ( #3050 ) from bump/sops-nix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3050
2025-03-18 13:11:29 +00:00
renovate[bot]
d276d2faea
chore(deps): update dependency typescript to v5.8.2
2025-03-18 13:10:11 +00:00
Mic92
d470283dca
Merge pull request 'fix(deps): update dependency @solid-primitives/storage to v4' ( #3046 ) from renovate/solid-primitives-storage-4.x into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3046
2025-03-18 13:08:51 +00:00
Mic92
88dab7d8bd
Merge pull request 'chore(deps): update dependency vitest to v3' ( #3044 ) from renovate/major-vitest-monorepo into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3044
2025-03-18 13:07:47 +00:00
Mic92
8474a0aaef
Merge pull request 'chore(deps): update dependency @types/node to v22' ( #3037 ) from renovate/node-22.x into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3037
2025-03-18 13:07:29 +00:00
Jörg Thalheim
5ab2f206ea
cli: increase timeout for pytest
2025-03-18 14:04:43 +01:00
Michael Hoang
ea8037006f
flake: switch back to using main branch of sops-nix
2025-03-18 12:55:13 +00:00
renovate[bot]
3a682a6b3e
fix(deps): update dependency @solid-primitives/storage to v4
2025-03-18 12:50:42 +00:00
renovate[bot]
0556ea624f
chore(deps): update dependency vitest to v3
2025-03-18 12:50:30 +00:00
renovate[bot]
8671fd7407
chore(deps): update dependency @types/node to v22
2025-03-18 12:50:14 +00:00
Mic92
3a9f0eb608
Merge pull request 'Fix broken installation tests' ( #3055 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3055
2025-03-18 12:49:14 +00:00
Jörg Thalheim
1736b0f539
work around in installation test by using newer nix version
2025-03-18 13:29:28 +01:00
Jörg Thalheim
eb375f3d81
tests: fix warning about invalid nix registry
2025-03-18 13:29:28 +01:00
renovate[bot]
6162b82adb
fix(deps): update tanstack-query monorepo
2025-03-18 12:10:39 +00:00
renovate[bot]
085189d1c4
fix(deps): update dependency nanoid to v5.1.4
2025-03-18 12:00:33 +00:00
renovate[bot]
3cb22ad2a1
chore(deps): update dependency vite to v6
2025-03-18 11:40:34 +00:00
Luis Hebendanz
27269d4ed9
Merge pull request 'ADR: init clanModules architecture decision' ( #2838 ) from hsjobeki/clan-core:adr/clanModules into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2838
Reviewed-by: kenji <aks.kenji@protonmail.com >
Reviewed-by: pinpox <clan@pablo.tools >
Reviewed-by: Luis Hebendanz <consulting@qube.email >
Reviewed-by: DavHau <d.hauer.it@gmail.com >
2025-03-18 11:15:16 +00:00
Johannes Kirschbauer
7cbedc74a5
ADR: init clanModules architecture decision
...
ADR: improve after review
improve wording
improve based on feedback
decisions/clanModules
2025-03-18 11:14:16 +00:00
renovate[bot]
5ac30a767b
chore(deps): update dependency jsdom to v26
2025-03-12 15:01:24 +00:00
renovate[bot]
89c6bcda4d
chore(deps): update actions/checkout action to v4
2025-03-12 13:01:16 +00:00
renovate[bot]
51da020de2
fix(deps): update tanstack-query monorepo
2025-03-12 12:12:37 +00:00
renovate[bot]
e943d8531f
fix(deps): update dependency nanoid to v5.1.3
2025-03-12 12:01:17 +00:00
renovate[bot]
13b9c23db9
fix(deps): update dependency @solidjs/router to ^0.15.0
2025-03-12 11:12:36 +00:00
renovate[bot]
ad43f323b8
fix(deps): update dependency @solid-primitives/storage to v3.8.0
2025-03-12 11:01:19 +00:00
renovate[bot]
aeb3cc4428
chore(deps): update typescript-eslint monorepo to v7.18.0
2025-03-12 10:12:37 +00:00
renovate[bot]
d81ca7206b
fix(deps): update dependency @modular-forms/solid to ^0.25.0
2025-03-12 09:22:33 +00:00
renovate[bot]
0011cf594a
chore(deps): update eslint monorepo
2025-03-12 09:12:38 +00:00
renovate[bot]
41cd4533ba
chore(deps): update dependency vite-plugin-solid to v2.11.6
2025-03-12 09:01:19 +00:00
renovate[bot]
c15544e928
chore(deps): update dependency vite to v5.4.14
2025-03-12 08:02:36 +00:00
renovate[bot]
fa0fe23985
chore(deps): update dependency solid-devtools to ^0.33.0
2025-03-12 07:52:35 +00:00
renovate[bot]
1497e76bc2
chore(deps): update dependency vitest to v1.6.1
2025-03-12 07:42:29 +00:00
renovate[bot]
b3d9c23e39
chore(deps): update dependency eslint-plugin-tailwindcss to v3.18.0
2025-03-12 07:32:34 +00:00
renovate[bot]
5520641feb
chore(deps): update dependency daisyui to v4.12.24
2025-03-12 07:12:43 +00:00
renovate[bot]
97f5a6bd4c
chore(deps): update dependency prettier to v3.5.3
2025-03-12 07:01:20 +00:00
renovate[bot]
3b2b5db84a
chore(deps): update dependency tailwindcss to v3.4.17
2025-03-12 05:52:38 +00:00
renovate[bot]
84da7d437d
fix(deps): update dependency material-icons to v1.13.14
2025-03-12 05:42:37 +00:00
renovate[bot]
b2db2c7abc
fix(deps): update dependency corvu to v0.7.2
2025-03-12 05:32:47 +00:00
renovate[bot]
cb104b700d
fix(deps): update dependency solid-markdown to v2.0.14
2025-03-12 05:12:55 +00:00
renovate[bot]
41054885db
chore(deps): update dependency @types/node to v20.17.24
2025-03-12 05:01:29 +00:00
renovate[bot]
70c63221ec
chore(deps): update dependency jsdom to v24.1.3
2025-03-11 17:17:25 +00:00
renovate[bot]
9c130c73e4
chore(deps): update dependency autoprefixer to v10.4.21
2025-03-11 16:57:31 +00:00
Mic92
178fff0618
Merge pull request 'nix fmt: renovate.json' ( #3015 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3015
2025-03-11 16:57:08 +00:00
Jörg Thalheim
6324b495ee
nix fmt: renovate.json
2025-03-11 17:56:52 +01:00
Mic92
ce7a70f9e1
Merge pull request 'renovate: enable recommend config/lock files/nix' ( #3013 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3013
2025-03-11 16:43:51 +00:00
Jörg Thalheim
7102af9bd9
renovate: enable recommend config/lock files/nix
2025-03-11 17:43:31 +01:00
Mic92
b38fddaf29
Merge pull request 'drop renovate json' ( #3012 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3012
2025-03-11 16:38:06 +00:00
Jörg Thalheim
e7ffcedd14
drop renovate json
...
we just use the defaults in clan-infra
2025-03-11 16:38:00 +00:00
Mic92
b5a66e767b
Merge pull request 'renovate: also update flake.lock' ( #3011 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3011
2025-03-11 16:33:00 +00:00
Jörg Thalheim
854d0fa83e
renovate: also update flake.lock
2025-03-11 17:31:38 +01:00
Mic92
4ccf5ca373
Merge pull request 'renovate: enable dependency dashboard' ( #3009 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3009
2025-03-11 16:26:55 +00:00
Jörg Thalheim
781d439567
renovate: enable dependency dashboard
2025-03-11 17:23:42 +01:00
Mic92
68e00ff613
Merge pull request 'chore(deps): update dependency @tailwindcss/typography to v0.5.16' ( #3006 ) from renovate/tailwindcss-typography-0.x-lockfile into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3006
2025-03-11 15:39:10 +00:00
Mic92
828028e4b3
Merge pull request 'chore(deps): update dependency @floating-ui/dom to v1.6.13' ( #3005 ) from renovate/floating-ui-dom-1.x-lockfile into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3005
2025-03-11 15:38:24 +00:00
renovate[bot]
b48d07f5c5
chore(deps): update dependency @tailwindcss/typography to v0.5.16
2025-03-11 15:31:37 +00:00
renovate[bot]
ea8c9ed649
chore(deps): update dependency @floating-ui/dom to v1.6.13
2025-03-11 15:31:33 +00:00
Mic92
68cb04c958
Merge pull request 'chore: Configure Renovate' ( #3000 ) from renovate/configure into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3000
2025-03-11 15:06:28 +00:00
renovate[bot]
b8cb85fc72
Add renovate.json
2025-03-11 15:02:50 +00:00
Mic92
bdb97308d0
Merge pull request 'remove clan-bot' ( #2999 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2999
2025-03-11 15:00:53 +00:00
Jörg Thalheim
9708bdc6e7
remove clan-bot
...
gitea has auto-merge builtin, so we don't need the clan-bot.
2025-03-11 15:02:41 +01:00
Jörg Thalheim
9ac8a45f1d
actually hide test-fixture from user
...
if we actually want to avoid the dependency on this facter json, we
cannot expose this as a flake input because nix flake archive will have
to download this on each deployment step.
2025-03-11 12:23:59 +00:00
Jörg Thalheim
a14fe1aef8
try to reproduce CI error with newer nix version
2025-03-11 12:23:59 +00:00
Jörg Thalheim
b1401d6e6b
fix only the first generator of each machine beeing re-encrypted
2025-03-11 12:09:00 +01:00
Jörg Thalheim
f882c86fb0
don't log cache miss by default
...
This is expected and happens regular, so there is no value in logging
this.
2025-03-11 12:03:55 +01:00
Jörg Thalheim
98d566c46e
add test for parsing ssh options
2025-03-11 11:27:04 +01:00
Jörg Thalheim
c4ec4ccb3f
checks/morph: after flake update, increase memory size to 2048
2025-03-11 09:46:54 +00:00
Clan Merge Bot
5a6677379a
update flake lock - 2025-03-10T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/fa5746ecea1772cf59b3f34c5816ab3531478142?narHash=sha256-xFnU%2BuUl48Icas2wPQ%2BZzlL2O3n8f6J2LrzNK9f2nng%3D' (2025-02-15)
→ 'github:nix-community/disko/19c1140419c4f1cdf88ad4c1cfb6605597628940?narHash=sha256-WK%2BPZHbfDjLyveXAxpnrfagiFgZWaTJglewBWniTn2Y%3D' (2025-02-25)
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/32ea77a06711b758da0ad9bd6a844c5740a87abd?narHash=sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm%2BzmZ7vxbJdo%3D' (2025-02-01)
→ 'github:hercules-ci/flake-parts/f4330d22f1c5d2ba72d3d22df5597d123fdb60a9?narHash=sha256-%2Bu2UunDA4Cl5Fci3m7S643HzKmIDAe%2BfiXrLqYsR2fs%3D' (2025-03-07)
• Updated input 'nixpkgs':
'https://releases.nixos.org/nixpkgs/nixpkgs-25.05pre762233.02032da4af07/nixexprs.tar.xz?narHash=sha256-%2BvOiMQwHEYBbWgvK//cuUqHZQ/y3DddCLyxZAbDdpnM%3D ' (1980-01-01)
→ 'https://releases.nixos.org/nixpkgs/nixpkgs-25.05pre764393.ed0b1881565c/nixexprs.tar.xz?narHash=sha256-Xre00/fcpD/SxZZfxRuMSu7YOBCY6vOfgFBYKNntox8%3D ' (1980-01-01)
2025-03-11 09:46:54 +00:00
DavHau
30d19d088f
docs: move contributing+debugging to section contributing
2025-03-11 15:19:46 +07:00
Luis Hebendanz
f3c45eb23e
Merge pull request 'pkgs/webview-lib: Fix version' ( #2991 ) from kenji/clan-core:webview-version into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2991
2025-03-10 13:20:38 +00:00
a-kenji
eaac6c76e2
pkgs/webview-lib: Fix version
2025-03-10 13:20:38 +00:00
Luis Hebendanz
0939b29a8e
Merge pull request 'clan-cli/tests: limit jobs to 16' ( #2986 ) from DavHau/clan-core:dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2986
2025-03-10 13:20:18 +00:00
DavHau
a2a395cdb0
clan-cli/tests: limit jobs to 16
...
This reduces overload on the CI, as it already runs multiple test instances in parallel (with-core, without-core, etc), and otherwise would spawn 96 workers for each of those.
2025-03-10 13:20:18 +00:00
Luis Hebendanz
df7429dbe7
Merge pull request 'fix: clan machines install on machines without hardware configuration' ( #2983 ) from fix/systemless-installs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2983
Reviewed-by: kenji <aks.kenji@protonmail.com >
2025-03-10 13:19:17 +00:00
Michael Hoang
362faaf063
checks: use facter.json from external test-fixtures repo
2025-03-10 12:30:03 +09:00
Michael Hoang
e215a9db6e
install: let nixos-anywhere determine where to build automatically
...
This fixes installing machines that don't have `system` defined i.e.
when running `clan machines install` with `--update-hardware-config`.
2025-03-10 12:30:03 +09:00
Michael Hoang
a5dd76b66d
checks: don't expose systems that can't be evaluated
2025-03-10 11:58:32 +09:00
Michael Hoang
4472c51c25
checks: test installation on system-less systems
2025-03-10 11:58:32 +09:00
Michael Hoang
c6cf9d1336
checks/installation: use test-flake instead of self
2025-03-10 11:58:32 +09:00
Clan Merge Bot
9b6e42790e
update flake lock - nixpkgs - 2025-03-10T00:00+00:00
...
Flake lock file updates:
• Updated input 'nixpkgs':
'https://releases.nixos.org/nixpkgs/nixpkgs-25.05pre762233.02032da4af07/nixexprs.tar.xz?narHash=sha256-%2BvOiMQwHEYBbWgvK//cuUqHZQ/y3DddCLyxZAbDdpnM%3D ' (1980-01-01)
→ 'https://releases.nixos.org/nixpkgs/nixpkgs-25.05pre764393.ed0b1881565c/nixexprs.tar.xz?narHash=sha256-Xre00/fcpD/SxZZfxRuMSu7YOBCY6vOfgFBYKNntox8%3D ' (1980-01-01)
2025-03-10 00:00:46 +00:00
a-kenji
547b012e0b
clanModules/mycelium: Allow by default, if adding the module
2025-03-09 23:49:03 +00:00
DavHau
9797ef792a
vars+facts: use bwrap only if supported
2025-03-09 13:52:15 +07:00
Luis Hebendanz
fe0de90a28
Merge pull request 'Fix iwd space handling' ( #2980 ) from Qubasa/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2980
2025-03-07 13:34:48 +00:00
Qubasa
539fd30206
clan-cli: treefmt fix to iwd module
2025-03-07 14:26:37 +01:00
Guilhem Saurel
a11d5471ec
Fix iwd space handling
...
ref man iwd.network:
> Key-value lines contain a setting key, an equal sign and the value of
> the setting. Whitespace preceding the key, the equal sign or the value,
> is ignored. The key must be a continuous string of alphanumeric and
> underscore characters and minus signs only. The value starts at the
> first non-whitespace character after the first equal sign on the line
> and ends at the end of the line and must be correctly UTF-8-encoded.
> […]
> String values, including file
> paths and hexstrings, are written as is except for five characters that
> may be backslash-escaped: space, \t, \r, \n and backslash itself.
> The latter three must be escaped. A space character must be escaped if
> it is the first character in the value string and is written as \s.
I guess this is what is expected then:
```
$ echo -e " \t \r \\ "
\
$ echo -e " \t \r \\ " | sed "s=\\\=\\\\\\\=g;s=\t=\\\t=g;s=\r=\\\r=g;s=^ =\\\s="
\s \t \r \\
```
2025-03-07 14:26:37 +01:00
Luis Hebendanz
19f2facbce
Merge pull request 'clan-cli flake: make lix compatible' ( #2970 ) from lix-compat into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2970
2025-03-07 13:21:45 +00:00
Qubasa
468a25034e
clan-cli: Make Lix compatible again
2025-03-07 14:06:35 +01:00
Johannes Kirschbauer
a2b76eb5a2
Inventory: rename internal inventory toplevel attribute to 'inventoryClass'
2025-03-07 12:30:29 +00:00
DavHau
ba0ed30997
update nixpkgs
2025-03-07 14:30:01 +07:00
DavHau
2a4d2c9cb5
switch to nixpkgs hosteded by cache.nixos.org
...
take 2 on https://git.clan.lol/clan/clan-core/pulls/2921
2025-03-07 07:20:07 +00:00
Michael Hoang
4c1e74fae6
nixos/clan: rename setDefaults to enableRecommendedDefaults
2025-03-05 03:37:41 +00:00
pinpox
cee62bf168
Merge pull request 'Automatic updates (phase 1)' ( #2914 ) from pinpox/clan-core:auto-update-module into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2914
2025-03-04 10:26:20 +00:00
Pablo Ovelleiro Corral
a865213894
Add auto-upgrade module
2025-03-04 10:09:37 +01:00
Johannes Kirschbauer
d8f9375580
Docs: add comment where actual contributing.md is located
2025-03-04 15:16:54 +09:00
Luis Hebendanz
526072806f
Merge pull request 'docs/repo-layout: Remove infra section' ( #2964 ) from kenji/clan-core:docs/remove-infra into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2964
Reviewed-by: Enzime <enzime@noreply.git.clan.lol >
2025-03-03 11:34:45 +00:00
a-kenji
91a19d9ea9
docs/repo-layout: Remove infra section
...
Remove the public infra section, as it uses a bit of unfortunate
wording. It suggests we would add anyone to our infrastructure as an
admin.
2025-03-03 11:34:45 +00:00
Luis Hebendanz
38c7644692
Merge pull request 'docs/CONTRIBUTING: Remove internal tools documentation to streamline' ( #2962 ) from kenji/clan-core:docs/remove-internal into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2962
Reviewed-by: Enzime <enzime@noreply.git.clan.lol >
2025-03-03 11:34:34 +00:00
a-kenji
726f2ab5f8
docs/CONTRIBUTING: Remove internal tools documentation to streamline
...
Remove our internal developer tools documentation to streamline the
CONTRIBUTING.md guide and to not confuse external contributors.
2025-03-03 11:34:34 +00:00
a-kenji
5918620535
docs/CONTRIBUTING: Add missing article
2025-03-02 20:44:42 -08:00
a-kenji
58e85eda9c
clanModules/iwd: Fix conversion link
2025-03-02 20:27:40 -08:00
a-kenji
e98e817941
docs: Fix numbered markdown list
2025-03-02 20:10:43 -08:00
a-kenji
fe92c7d1e6
docs/CONTRIBUTING: Clarify wrong suggestion about debugging dependent tools
2025-03-03 03:57:33 +00:00
a-kenji
4222f9788c
docs/site: Fix flake-parts link
2025-03-03 03:53:49 +00:00
a-kenji
3d80423259
docs/CONTRIBUTING: Fix data-mesher reference name
2025-03-02 19:42:57 -08:00
Johannes Kirschbauer
186e81d8b9
Tests: migrate backup tests to use inventory
2025-03-03 02:28:03 +00:00
Qubasa
212c899767
clan-cli: Revert generating facts in clan facts list, for consistency
2025-03-03 01:40:40 +01:00
Luis Hebendanz
312c12c98f
Merge pull request 'clan-cli: Fix wrong clan vars generate regression added by a903a9028b555223ddcb897cf8a8fb198fb991b4' ( #2951 ) from Qubasa/clan-core:fix_regression into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2951
2025-03-02 19:05:23 +00:00
Qubasa
2ec4e49650
clan-cli: Fix wrong clan vars generate regression added by a903a9028b
2025-03-02 19:53:17 +01:00
kenji
4e5b4a1b80
Merge pull request 'clanModules/root-password: don't deploy plain text password' ( #2950 ) from vdbe/clan-core:clanModules/root-password/dont-deploy-plain-text into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2950
2025-03-02 18:43:38 +00:00
vdbe
ccb3bdb740
clanModules/root-password: don't deploy plain text password
2025-03-02 17:52:03 +01:00
Luis Hebendanz
a903a9028b
Merge pull request 'clan-cli: Fix get_all_facts forgetting to generate facts before getting them' ( #2949 ) from Qubasa/clan-core:other_fixes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2949
2025-03-02 14:57:59 +00:00
Qubasa
ba28691747
clan-cli: Fix get_all_facts forgetting to generate facts before getting them
2025-03-02 15:07:57 +01:00
Luis Hebendanz
e7aa5cfb4e
Merge pull request 'templates: Remove description attribute from templates' ( #2933 ) from kenji/clan-core:templates/remove-description into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2933
Reviewed-by: Enzime <enzime@noreply.git.clan.lol >
2025-03-02 13:45:59 +00:00
a-kenji
8b74147721
templates: Remove description attribute from templates
...
Remove the `description` flake attribute from templates.
It has limited usefulness, is unset, is another thing the user has to
set and is confronted with.
It seems better to omit this attribute to keep the focus here on what
really matters.
2025-03-02 13:45:59 +00:00
Luis Hebendanz
299180703e
Merge pull request 'clanModules/machine-id: fix value' ( #2948 ) from vdbe/clan-core:fix/clanmodules/machine-id into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2948
2025-03-02 13:44:48 +00:00
vdbe
6c941deb96
clanModules/machine-id: fix value
2025-03-02 10:41:35 +01:00
Michael Hoang
39761946a0
vars/sops: fix clan vars fix missing machine name in error message
2025-03-02 08:22:23 +07:00
Luis Hebendanz
b71e16dd5d
Merge pull request 'clan-cli: Remove can_build_locally and replace with nixos-anywhere --build-on auto' ( #2944 ) from Qubasa/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2944
2025-03-01 17:34:17 +00:00
Qubasa
0da1a05b55
clan-cli: Remove can_build_locally and replace with nixos-anywhere --build-on auto
2025-03-01 17:52:41 +01:00
Luis Hebendanz
3551d061ce
Merge pull request 'clan-cli: Make host upload function support uploading single files too' ( #2943 ) from Qubasa/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2943
2025-03-01 16:35:19 +00:00
Qubasa
6099aeb0c6
clan-cli: Make host upload function support uploading single files too
2025-03-01 17:10:42 +01:00
lassulus
bcd6c7108a
clan-cli: try to fix CI bug again
2025-02-28 04:58:42 +00:00
lassulus
d20f13abe7
clan-cli: set ssh port for nix copy
2025-02-28 04:58:42 +00:00
a-kenji
cfeda1f06d
templates: Remove unneeded article
2025-02-27 11:28:48 +00:00
Luis Hebendanz
73dd981f71
Merge pull request 'docs/guide: Mention alternative secret store backends' ( #2926 ) from kenji/clan-core:docs/add-reference-to-other-backend into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2926
2025-02-27 09:58:00 +00:00
a-kenji
bc239e104c
docs/guide: Mention alternative secret store backends
2025-02-27 09:58:00 +00:00
Luis Hebendanz
bd2702df6d
Merge pull request 'templates: Remove superfluous comment' ( #2932 ) from kenji/clan-core:templates/remove-superfluuous-comment into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2932
2025-02-27 09:57:13 +00:00
a-kenji
7b0e652a7a
templates: Remove superfluous comment
...
Remove this seemingly superfluous comment.
It is unclear what it really refers to.
Let's just remove it for brevity sake.
2025-02-27 09:57:13 +00:00
Luis Hebendanz
0c0eafe0f5
Merge pull request 'docs/guide: Deduplicate machine instructions' ( #2924 ) from kenji/clan-core:docs/dedup-machines into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2924
2025-02-27 09:56:52 +00:00
a-kenji
3e0cd4bdfb
docs/guide: Deduplicate machine instructions
2025-02-27 09:56:52 +00:00
Luis Hebendanz
2cf40fea51
Merge pull request 'tests/inventory: Drop zed-editor from the test inventory' ( #2922 ) from kenji/clan-core:drop/zed into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2922
Reviewed-by: lassulus <clanlol@lassul.us >
2025-02-27 09:56:23 +00:00
a-kenji
40d1a76d8a
tests/inventory: Drop zed-editor from the test inventory
...
Drop `zed-editor` from the test inventory and exchange it with `hello`.
The inventory packages are built in the tests, we don't want to build
large derivations there.
2025-02-27 09:56:23 +00:00
lassulus
60b22fdf0e
clan-cli: another try to fix the CI bug
2025-02-27 08:24:28 +01:00
lassulus
cb13e7fab8
clan-cli: check if paths exist in cache check
2025-02-27 02:53:41 +01:00
Qubasa
b82a3b6085
clan-cli: Fix flake.py missing cache eviction if there is a garbage collected path
2025-02-27 01:01:50 +01:00
lassulus
44345ed28b
Merge pull request 'fix(clan-cli): fix cross system' ( #2935 ) from r17x/clan-core:fix/machine-cross-target-host into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2935
2025-02-26 09:18:08 +00:00
r17x
456b25c921
fix(clan-cli): fix cross system
2025-02-26 14:27:00 +07:00
a-kenji
dfb5e5123f
docs/guide: Add devshell recommendation to getting started
...
Fixes : #2218
2025-02-25 18:16:50 +00:00
a-kenji
636ee65428
clanModules/zerotier: Fix documentation
2025-02-26 00:41:20 +07:00
a-kenji
cbf8685f6e
templates/flake-parts: Add .envrc
...
Since the other template also has an `.envrc` let's keep everything
consistent.
2025-02-25 18:43:53 +07:00
Pablo Ovelleiro Corral
500af543bb
Revert "switch to nixpkgs hosteded by cache.nixos.org"
...
This reverts commit 8f6dd4acc4 .
2025-02-25 09:04:27 +01:00
Pablo Ovelleiro Corral
46971aa51f
Apply suggestion
2025-02-25 08:51:51 +01:00
Pablo Ovelleiro Corral
3d83266916
Fix exists() check for age files
2025-02-25 08:51:51 +01:00
lassulus
b87768d44a
Merge pull request 'clan-cli: add unit tests for test_parse_deployment_address' ( #2910 ) from lopter/clan-core:lo-test-parse-deployment-address into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2910
2025-02-25 05:31:49 +00:00
Louis Opter
5b821c610d
clan-cli: add unit tests for test_parse_deployment_address
...
Follow-up to #2899 , more thorough than #2909 .
2025-02-25 05:31:49 +00:00
Mic92
347a5a5f76
Merge pull request 'switch to nixpkgs hosteded by cache.nixos.org' ( #2921 ) from fix-build into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2921
2025-02-24 03:48:43 +00:00
Jörg Thalheim
8f6dd4acc4
switch to nixpkgs hosteded by cache.nixos.org
...
This now works thanks to https://github.com/NixOS/infra/pull/562
2025-02-24 10:44:15 +07:00
Clan Merge Bot
f3cbd0b289
update flake lock - treefmt-nix - 2025-02-24T00:00+00:00
...
Flake lock file updates:
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/4f09b473c936d41582dd744e19f34ec27592c5fd?narHash=sha256-yrK3Hjcr8F7qS/j2F%2Br7C7o010eVWWlm4T1PrbKBOxQ%3D' (2025-02-07)
→ 'github:numtide/treefmt-nix/3d0579f5cc93436052d94b73925b48973a104204?narHash=sha256-mL1szCeIsjh6Khn3nH2cYtwO5YXG6gBiTw1A30iGeDU%3D' (2025-02-17)
2025-02-24 00:00:55 +00:00
Qubasa
7b8a980336
clan-cli: Remove allow_uknown_placeholders flag. With upcoming nixos-anywhere patch this is not needed anymore.
2025-02-23 21:50:21 +01:00
Qubasa
d53e062024
clan-cli: Add an optional reference to an AsyncFuture to track origin of task.
2025-02-23 21:44:00 +01:00
lassulus
5ac629f549
clan-cli: use new flake caching for machines
2025-02-23 15:58:03 +01:00
lassulus
6c7fc15c0e
try to fix profiles CI bug
2025-02-22 03:39:42 +00:00
lassulus
3121c5ecdb
machines install: fix installation via tor
2025-02-22 03:39:42 +00:00
lassulus
ada544ef56
vars fs: fix
2025-02-22 03:39:42 +00:00
lassulus
3e0f9f52bb
clan-cli deploy_info: fix find_reachable_host returning unreachable hosts
2025-02-22 03:39:42 +00:00
lassulus
3992d0ed0d
add demo_iso code for iso-morphing
2025-02-22 03:39:42 +00:00
lassulus
6037dde559
Merge pull request 'Add support for XDG_* style directories on macos' ( #2865 ) from Undone8/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2865
2025-02-22 03:34:56 +00:00
Denis Rosca
baa0a615ea
Add support for XDG_* style directories on macos
...
Closes #2864
2025-02-22 03:34:56 +00:00
Jörg Thalheim
b0760bc2b9
recommend vars over facts
2025-02-22 03:34:40 +00:00
Mic92
6a33fe8e7a
Merge pull request 'fix regex for detecting git+file inputs' ( #2907 ) from fix-git-input into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2907
2025-02-21 02:57:22 +00:00
Jörg Thalheim
1f3bd09245
fix regex for detecting git+file inputs
2025-02-20 10:00:04 +07:00
a-kenji
122dbf4240
clanModules/mycelium: Remove certain options for compatibility reasons
...
Remove certain options for compatibility reasons
We want to reintroduce them once we pass in `vars` through the
inventory.
2025-02-19 09:54:00 +00:00
Qubasa
8ac286bcaf
docs: Fix install documentation
2025-02-19 14:23:45 +07:00
hsjobeki
8fcc004b68
Merge pull request 'clan-cli: "fix" ssh option parsing' ( #2899 ) from lopter/clan-core:lo-fix-ssh-option-parsing into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2899
2025-02-19 01:41:07 +00:00
Louis Opter
37bbbefa8e
clan-cli: "fix" ssh option parsing
...
Calling it fix in double quotes since that's still quite hand-crafted,
but at least you can now specify options with `@` inside them (e.g.
`ProxyJump`) and have it work properly.
Moreover this fixes the syntax for GET-like variables in the networking
clanCore module. Only the fixed syntax is supported since that's what
was tested, and actually parsed in the code.
2025-02-18 21:37:38 +00:00
Qubasa
d44def5381
clan-cli: Fix clan create throwing a warning if --flake is not defined
2025-02-18 17:40:27 +07:00
Qubasa
03ce74fc74
clan-clI: Improve error message of clan update-hardware-config on non found nixos-facter
2025-02-18 17:40:27 +07:00
Qubasa
6c8137d30b
docs: Fix multiple issues with the clan installation guide
2025-02-18 17:40:27 +07:00
Pablo Ovelleiro Corral
27a3126d68
Make store-backend configurable
2025-02-18 06:34:50 +01:00
Qubasa
faee6c2a79
clan-cli: Re-add test_copy_from_nixstore_symlink test but mark it impure
2025-02-17 14:21:50 +07:00
Qubasa
6070219b1a
clan-cli: Remove set -x from pytest script
2025-02-17 14:10:22 +07:00
Qubasa
a5e32f9b6d
clan-cli: Fix clan flakes create inside an already existing git repo
2025-02-17 13:23:31 +07:00
Qubasa
89e3793831
clan-cli: Add CLAN_TEST_STORE env var to clan-pytest-without-core
2025-02-17 13:19:45 +07:00
Michael Hoang
fd908e18c3
templates: move machine templates
2025-02-17 02:15:42 +00:00
Clan Merge Bot
a4d4b991a1
update flake lock - 2025-02-17T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/ff3568858c54bd306e9e1f2886f0f781df307dff?narHash=sha256-3Z40qHaFScWUCVQrGc4Y%2BRdoPsh1R/wIh%2BAN4cTXP0I%3D' (2025-02-05)
→ 'github:nix-community/disko/fa5746ecea1772cf59b3f34c5816ab3531478142?narHash=sha256-xFnU%2BuUl48Icas2wPQ%2BZzlL2O3n8f6J2LrzNK9f2nng%3D' (2025-02-15)
• Updated input 'nixos-facter-modules':
'github:numtide/nixos-facter-modules/fa11d87b61b2163efbb9aed7b7a5ae0299e5ab9c?narHash=sha256-aY55yiifyo1XPPpbpH0kWlV1g2dNGBlx6622b7OK8ks%3D' (2025-01-15)
→ 'github:numtide/nixos-facter-modules/60f8b8f3f99667de6a493a44375e5506bf0c48b1?narHash=sha256-/nA3tDdp/2g0FBy8966ppC2WDoyXtUWaHkZWL%2BN3ZKc%3D' (2025-02-05)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/1128e89fd5e11bb25aedbfc287733c6502202ea9?narHash=sha256-3ebRdThRic9bHMuNi2IAA/ek9b32bsy8F5R4SvGTIog%3D' (2025-02-13)
→ 'github:NixOS/nixpkgs/fada727ee7c0bd487e311dede0a2b0725a0f7765?narHash=sha256-Zc%2BK4AxAwFaWKK18nSl/3TKidGf46En7bfK8SL%2BRevg%3D' (2025-02-14)
2025-02-17 00:52:05 +00:00
Clan Merge Bot
4670525106
update flake lock - disko - 2025-02-17T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/ff3568858c54bd306e9e1f2886f0f781df307dff?narHash=sha256-3Z40qHaFScWUCVQrGc4Y%2BRdoPsh1R/wIh%2BAN4cTXP0I%3D' (2025-02-05)
→ 'github:nix-community/disko/fa5746ecea1772cf59b3f34c5816ab3531478142?narHash=sha256-xFnU%2BuUl48Icas2wPQ%2BZzlL2O3n8f6J2LrzNK9f2nng%3D' (2025-02-15)
2025-02-17 00:34:01 +00:00
Clan Merge Bot
5a0ed03c56
update flake lock - nixpkgs - 2025-02-17T00:00+00:00
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/1128e89fd5e11bb25aedbfc287733c6502202ea9?narHash=sha256-3ebRdThRic9bHMuNi2IAA/ek9b32bsy8F5R4SvGTIog%3D' (2025-02-13)
→ 'github:NixOS/nixpkgs/fada727ee7c0bd487e311dede0a2b0725a0f7765?narHash=sha256-Zc%2BK4AxAwFaWKK18nSl/3TKidGf46En7bfK8SL%2BRevg%3D' (2025-02-14)
2025-02-17 00:00:54 +00:00
Michael Hoang
af228db398
machines: hide morph
2025-02-17 00:22:14 +07:00
Pablo Ovelleiro Corral
b0e7de3c8b
Create directory
2025-02-16 17:08:54 +00:00
Pablo Ovelleiro Corral
cb89fb0847
Fix locking
2025-02-16 17:08:54 +00:00
Pablo Ovelleiro Corral
014aec9531
Fix output when rebuilding
2025-02-16 17:08:54 +00:00
Michael Hoang
160bbfcb37
cli: add morph command
2025-02-16 21:31:28 +07:00
Michael Hoang
5c68e129b7
nixos/clan: add option for opting out of Clan defaults
...
Also replace `documentation.nixos.enable = false` with
`documentation.doc.enable` to opt out of only `nixos-help` and the HTML
manual but leave `man configuration.nix`.
2025-02-16 21:31:28 +07:00
Michael Hoang
bc53c7a886
cli: make some functions only create commits optionally
2025-02-16 21:14:09 +07:00
Michael Hoang
61c1943ccc
templates: allow specifying from flake-parts module
2025-02-16 21:10:22 +07:00
a-kenji
c3013c1a02
docs/mesh-vpn: Document inventory usage
2025-02-16 13:32:42 +07:00
a-kenji
3cff6577da
docs: Extend backups guide
...
Closes #2792
2025-02-16 13:04:53 +07:00
a-kenji
c795a1d895
clanModules/syncthing-static-peers: Migrate to vars
...
Part of the #2511 migration.
2025-02-15 23:34:25 +07:00
a-kenji
66e166068e
clanModules/garage: Migrate to vars
...
Part of the #2511 migration.
2025-02-15 11:21:09 +00:00
lassulus
0c7173afd0
cli: nix_add_to_gcroots: don't run in sandboxed tests
2025-02-15 09:59:41 +00:00
lassulus
d5e391ecc8
clan-cli flake caching: fix selectors not merging
2025-02-15 09:59:41 +00:00
lassulus
2a3bc7b31b
clan-cli: hash the flake_hash to remove unwanted character from path
2025-02-15 09:59:41 +00:00
a-kenji
b54346ce03
clanModules/state-version: Remove trailing newlines
...
The state version is now matched against certain regex rules.
We strip possible trailing newlines to improve compatibility.
2025-02-15 16:29:07 +07:00
hsjobeki
39bc7c1f17
Merge pull request 'Fix: clan machines delete persistance logic' ( #2871 ) from hsjobeki/clan-core:hsjobeki-main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2871
2025-02-15 08:34:47 +00:00
Johannes Kirschbauer
153b5560c3
Cli: delete machines bugfix. Dont modify the inventory in other places
2025-02-15 09:03:54 +07:00
Johannes Kirschbauer
2412513ad4
Inventory: init delete api
2025-02-15 09:03:46 +07:00
Jörg Thalheim
873f650678
remove directory = self from our documentation
2025-02-15 01:48:17 +00:00
Qubasa
35aedddf65
docs: Add --refresh flag to nix shell command to mitigate caching issues
2025-02-14 13:28:21 +07:00
Qubasa
663ab70465
clan-cli: Make copy_from_nixstore work with single files
2025-02-14 13:28:01 +07:00
Jörg Thalheim
4f1e2ba582
zt-tcp-releay: useFetchCargoVendor
2025-02-14 12:25:32 +07:00
Jörg Thalheim
d3bd120a04
fix system.stateVersion
2025-02-14 12:22:26 +07:00
Jörg Thalheim
f8bf39e43a
bump nixpkgs
2025-02-14 12:09:04 +07:00
Jörg Thalheim
93a7e272b1
Revert "zerotierone: fix on macOS"
...
This reverts commit 2e212e3e31 .
no longer needed after nixpkgs bump
2025-02-14 12:08:18 +07:00
Qubasa
de3153259d
clan-cli: Fix garbled clan vms run output. docs: Improve debugging guide
2025-02-13 16:17:55 +07:00
Luis Hebendanz
bf492d4deb
Merge pull request 'clan-cli: Remove flake-registry set to none in get_clan_nix_attrset' ( #2862 ) from Qubasa/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2862
2025-02-13 08:55:40 +00:00
Qubasa
41cb679eab
clan-cli: Remove flake-registry set to none in get_clan_nix_attrset
2025-02-13 15:47:28 +07:00
Qubasa
b138cfcd69
clan-cli: Fix symlink issue with copy_from_nixstore, add test for it. Also add more comprehensive clan template tests
2025-02-13 15:34:21 +07:00
Luis Hebendanz
a22d426b25
Merge pull request 'cli: machines install: Add phases option to pass to nixos-anywhere and update the "Disk Encryption" documentation to use it' ( #2858 ) from sachk/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2858
2025-02-13 07:04:27 +00:00
Sacha Korban
c0f07afb98
docs: disc-encryption: change guide to use phases option and misc improvements
2025-02-13 17:10:07 +11:00
Sacha Korban
0eaaabcf63
clan-cli: machines install: add phases option for nixos-anywhere
2025-02-13 17:10:02 +11:00
kenji
7df51d0474
Merge pull request 'clan-cli: secrets machines remove: update secrets after removing the key' ( #2832 ) from lopter/clan-core:lo-fix-secrets-machine-remove into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2832
Reviewed-by: kenji <aks.kenji@protonmail.com >
2025-02-13 03:53:23 +00:00
Louis Opter
5a6038f742
clan-cli: secrets machines remove: update secrets after removing the key
...
Quick follow up to PR #2781 , this commit does the same kind of logic but
for machines instead of users and groups.
Note that this only affects the `clan secrets machines remove`
sub-command, and that `clan machines delete` still leaves unusable
secrets & vars behind. This can be addressed in a different change.
2025-02-13 03:53:23 +00:00
Luis Hebendanz
15e8df894e
Merge pull request 'docs: fix git rm step in Add Machines' ( #2853 ) from OliverNChalk/clan-core:main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2853
Reviewed-by: kenji <aks.kenji@protonmail.com >
2025-02-11 07:39:03 +00:00
OliverNChalk
50924ad7ff
docs: fix git rm step in Add Machines
2025-02-11 09:41:25 +11:00
Michael Hoang
2e212e3e31
zerotierone: fix on macOS
2025-02-10 20:56:31 +07:00
Qubasa
23b57b0a3a
clan-cli: Mark new test as impure
2025-02-10 20:36:55 +07:00
Qubasa
69d092c46b
clan-cli: Add update_clan boolean option to create_clan
2025-02-10 20:36:55 +07:00
Qubasa
2663a181d0
clan-cli: Fix disko template to not fail because of missing bootloader.
2025-02-10 20:36:55 +07:00
Qubasa
9ab81a9c5d
clan-cli: Add one more test for checking Flake with git+file:
2025-02-10 20:36:55 +07:00
lassulus
0872b781d7
clan-cli: add persistant flake caching
2025-02-10 13:29:01 +00:00
Jörg Thalheim
86e91c8604
cli: fix build on macOS
2025-02-10 17:41:50 +07:00
hsjobeki
14377f25c9
Merge pull request 'CLI: use partial update for machine create' ( #2848 ) from hsjobeki/clan-core:hsjobeki-main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2848
2025-02-10 09:02:23 +00:00
Johannes Kirschbauer
9b706c148b
Inventory: automatically create emtpy file on write
2025-02-10 09:02:23 +00:00
Johannes Kirschbauer
dee284d669
CLI: machine create use patch inventory for partial updates
2025-02-10 09:02:23 +00:00
lassulus
718e553211
clan_cli flake caching: support outPath
2025-02-10 04:33:37 +00:00
Clan Merge Bot
cbe3cb94b7
update flake lock - nixpkgs - 2025-02-10T00:00+00:00
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/102a39bfee444533e6b4e8611d7e92aa39b7bec1?narHash=sha256-Q4vhtbLYWBUnjWD4iQb003Lt%2BN5PuURDad1BngGKdUs%3D' (2025-02-01)
→ 'github:NixOS/nixpkgs/fa35a3c8e17a3de613240fea68f876e5b4896aec?narHash=sha256-7Fu7oazPoYCbDzb9k8D/DdbKrC3aU1zlnc39Y8jy/s8%3D' (2025-02-08)
2025-02-10 04:12:52 +00:00
hsjobeki
91661da320
revert 283aad7ea0
...
revert ADR: init clanModules architecture decision
2025-02-10 03:42:44 +00:00
Clan Merge Bot
7ebc11f96f
update flake lock - disko - 2025-02-10T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/18d0a984cc2bc82cf61df19523a34ad463aa7f54?narHash=sha256-KYOATYEwaKysL3HdHdS5kbQMXvzS4iPJzJrML%2B3TKAo%3D' (2025-01-29)
→ 'github:nix-community/disko/ff3568858c54bd306e9e1f2886f0f781df307dff?narHash=sha256-3Z40qHaFScWUCVQrGc4Y%2BRdoPsh1R/wIh%2BAN4cTXP0I%3D' (2025-02-05)
2025-02-10 00:40:28 +00:00
Clan Merge Bot
27ef7040c2
update flake lock - treefmt-nix - 2025-02-10T00:00+00:00
...
Flake lock file updates:
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/bebf27d00f7d10ba75332a0541ac43676985dea3?narHash=sha256-j6jC12vCFsTGDmY2u1H12lMr62fnclNjuCtAdF1a4Nk%3D' (2025-01-28)
→ 'github:numtide/treefmt-nix/4f09b473c936d41582dd744e19f34ec27592c5fd?narHash=sha256-yrK3Hjcr8F7qS/j2F%2Br7C7o010eVWWlm4T1PrbKBOxQ%3D' (2025-02-07)
2025-02-10 00:00:45 +00:00
Johannes Kirschbauer
283aad7ea0
ADR: init clanModules architecture decision
2025-02-09 05:04:36 +00:00
Mic92
775088ccd9
Merge pull request 'fix-repo-sync' ( #2834 ) from fix-repo-sync into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2834
2025-02-08 14:59:52 +00:00
Jörg Thalheim
d71a8329f2
fix missing permissions for repo-sync
2025-02-08 14:37:46 +01:00
Jörg Thalheim
022d0babc5
fix dependabot settings
2025-02-08 14:37:36 +01:00
hsjobeki
934d8fc2a4
Merge pull request 'inventory: refactor role resolution into submodule' ( #2826 ) from hsjobeki/clan-core:hsjobeki-main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2826
2025-02-08 04:03:51 +00:00
Johannes Kirschbauer
e75b50e335
Add missing test dependency
2025-02-08 10:48:57 +07:00
Johannes Kirschbauer
f9fc6904f0
inventory: refactor role resolution into submodule
2025-02-08 10:43:54 +07:00
Johannes Kirschbauer
6deaab506a
Inventory: test include missing dependency folder
2025-02-08 10:43:53 +07:00
lassulus
32748c14f4
clan_cli machines: use Flake instead of FlakeId
2025-02-07 06:26:09 +01:00
a-kenji
6d2845c645
pkgs/cli: Rename create_file -> persist
2025-02-06 14:59:59 +00:00
kenji
4899c38e52
Merge pull request 'pgks/cli: Add toplevel aliases' ( #2820 ) from kenji/clan-core:feat/alias/toplevel into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2820
2025-02-06 14:56:57 +00:00
a-kenji
0d69d72899
pgks/cli: Add toplevel aliases
2025-02-06 14:56:57 +00:00
Jörg Thalheim
34904b8758
add dependabot
2025-02-06 18:02:01 +07:00
lassulus
51d65873a7
clan-cli: test_flake_caching: add actual flake caching test
2025-02-05 10:17:37 +00:00
Johannes Kirschbauer
02929e9d42
Inventory: migrate import and config resolution into a module
2025-02-05 16:23:30 +07:00
Johannes Kirschbauer
2018de8d9e
Inventory: move build inventory into a module
2025-02-05 11:06:43 +07:00