a-kenji
dc915387d9
pkgs/clan(templates): Add shell completions
2025-07-13 21:00:30 +02:00
a-kenji
a890b586b4
pkgs/clan: Fix command typos
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
81da1e8b1d
Users: add option for regularUser
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
74c5f71fd7
Templates: keep clan.nix in sync between default and flake-parts
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
c3f26b3728
Modules/users: add isNormalUser true
...
NormalUsers get:
- Home directory
- Can login
This is expected for users created through this module. We can make it configurable if the use arises
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
2b3c5b0524
Templates/flake-parts: consistent default clan
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
6918a6f1e3
diskId: add migration docs and a big fat warning
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
71f8948a17
cli/templates: init apply disk
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
44d2a6485e
lib/disks: add parameter to disable hardware checking
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
2e82109688
cli/machine/hardware: improve error message
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
c3a2891929
get_machine: fix error message for not existing machine
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
2e2156bc86
lib/copy: fix, copying the content of tempate directory, not the directory itself
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
802ef94798
Vars/helper: remove unneeded wrapper arount collectFiles
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
2ce4f8bf37
Template/docs: improve gnome example
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
24d82776e7
Templates/minimal: move name to flake.nix
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
ff41903e47
templates: remove duplicate logic, update gnome template
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
31e3a37da4
templates/flake-parts: remove importing clanModules
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
690072e29e
docs: fix user module prompt description
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
d39fc575c6
modules/user: improce description, drop default groups
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
6019efe40a
modules/user: add extraGroups setting with default
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
02d35395a8
modules: add explicit class constraints
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
e90ea62ab7
openapi: remove verb {open}, noun {file}
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
5bf1f06244
API: rename {open_file, open_clan_folder} into {get_system_file, get_clan_folder}
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
1403f47b0d
Docs: improve api docs of {open_file, open_clan_folder}
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
743aa712f5
UI/Cubes: init circle positioning
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
9800e50ce1
UI/qubescene: add create animation
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
ef0b61ccd6
UI/qubescene: add delete and reposition animation
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
0d5dbb0fc5
UI/qubescene: dynamically recalculate the positions
2025-07-13 21:00:30 +02:00
Johannes Kirschbauer
9a647907e9
UI/cubescene: init delete cube
2025-07-13 21:00:30 +02:00
pinpox
5469ab0ae0
Add example for data-mesher service usage
2025-07-13 21:00:30 +02:00
pinpox
504533cf5a
Migrate data-mesher to clan service
2025-07-13 21:00:30 +02:00
Qubasa
e9f21a01e9
clan-app: Make http server non blocking, add tests for the http server and for cancelling tasks
2025-07-13 21:00:30 +02:00
Qubasa
f81089930e
stash
2025-07-13 21:00:30 +02:00
Qubasa
84a7dc7697
clan-app: Working swagger requests
2025-07-13 21:00:30 +02:00
Qubasa
0d851580e1
clan-lib: Fix @API.register_abstract not throwing correct error when called directly without implementation
...
clan-app: Fix mypy lint
clan-lib: Mark test as with_core
2025-07-13 21:00:30 +02:00
Qubasa
be384420d5
clan_lib: Add test for check_valid_clan function
2025-07-13 21:00:30 +02:00
Qubasa
5ebf5b6189
clan-app: Implement open_clan_folder api request
2025-07-13 21:00:30 +02:00
Qubasa
d7b476a311
clan-app: Moved thread handling up to the ApiBridge
2025-07-13 21:00:30 +02:00
Michael Hoang
230f3ad36c
docs: set manifest.readme for services to include README in the docs
2025-07-10 12:55:27 +10:00
renovate[bot]
a18cd40525
chore(deps): update disko digest to 7926429
2025-07-10 02:30:12 +00:00
kenji
1cb1c53dfd
Merge pull request 'pkgs/clan: Fix template listing' ( #4291 ) from kenji/ke-template-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4291
2025-07-09 17:40:01 +00:00
a-kenji
2281e61232
pkgs/clan: Fix template listing
2025-07-09 19:29:15 +02:00
hsjobeki
9300fd9dc7
Merge pull request 'refactor: move docs transformOptions to clanLib to reduce rebuilds' ( #4259 ) from self into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4259
2025-07-09 15:31:25 +00:00
hsjobeki
6ad5d8d28c
Merge pull request 'openapi: add strict top-level checking' ( #4280 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4280
2025-07-09 15:24:45 +00:00
Johannes Kirschbauer
dd1429c89f
Docs: fix rendering clan source code url
2025-07-09 17:24:20 +02:00
Jörg Thalheim
8d4099d13d
refactor: move docs transformOptions to clanLib to reduce rebuilds
...
- Add clanLib.docs.stripStorePathsFromDeclarations to deduplicate code
- Update all documentation generation to use the shared function
- This strips store paths from option declarations to prevent options.json
from rebuilding when only store paths change but content remains the same
- Reduces unnecessary documentation rebuilds when making unrelated changes
2025-07-09 16:59:58 +02:00
Johannes Kirschbauer
e3a882002c
openapi: add strict top-level checking
2025-07-09 16:57:06 +02:00
Johannes Kirschbauer
150e070a09
api: rename {list_system_services_mdns, list_system_storage_devices}
2025-07-09 16:51:42 +02:00
lassulus
cf3e5befda
Merge pull request 'feat: implement macOS sandboxing for vars generation using sandbox-exec' ( #4228 ) from darwin-sandbox into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4228
2025-07-09 14:37:24 +00:00
Jörg Thalheim
b53ff99248
sandbox_exec: refactor to use context manager for cleanup
...
Changed sandbox_exec_cmd to return a context manager that automatically
handles profile file cleanup. This ensures the temporary profile is
always removed, even if exceptions occur.
2025-07-09 16:27:04 +02:00
Mic92
0f1b816844
Merge pull request 'bump flake.lock' ( #4290 ) from flakes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4290
2025-07-09 12:53:20 +00:00
Jörg Thalheim
9f1eabd3e1
bump flake.lock
2025-07-09 14:38:23 +02:00
Luis Hebendanz
74489d399a
Merge pull request 'clan-app: init clan http api' ( #4278 ) from Qubasa/clan-core:add_middleware_tests into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4278
2025-07-09 11:53:10 +00:00
lassulus
7c11ed1d8d
clan-cli: implement macOS sandboxing for vars generation using sandbox-exec
...
Adds macOS sandboxing support similar to Linux bubblewrap implementation:
- Created clan_lib/sandbox_exec module with sandbox profile creation
- Implemented file system isolation allowing only tmpdir and nix store access
- Added network restrictions (deny outbound except localhost)
- Integrated sandbox-exec command into vars generation on macOS
- Added comprehensive test suite for macOS sandbox functionality
- Fixed working directory handling for generators writing to CWD
2025-07-09 13:51:18 +02:00
Mic92
ac7e082ce4
Merge pull request 'generate_test_vars: fix it' ( #4289 ) from generate_test_vars-fix-it into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4289
2025-07-09 11:49:06 +00:00
Qubasa
c76f7bb020
clan-app: Add swagger redirect
2025-07-09 18:48:00 +07:00
Qubasa
317cd7b5f5
clan-app: Cleaned up http code
2025-07-09 18:45:42 +07:00
Qubasa
3fbf34044a
clan-app: Working swagger
2025-07-09 18:34:58 +07:00
kenji
ab7d4409f6
Merge pull request 'pkgs/clan: Fix state list and add regression tests' ( #4284 ) from kenji/ke-test-state-list into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4284
2025-07-09 11:33:59 +00:00
a-kenji
65778cb9fe
pkgs/clan: Fix state list and add regression tests
...
Fix the `clan state list` subcommands, it now correctly propagates the
flake argument.
Also adds regression tests.
2025-07-09 13:22:21 +02:00
Mic92
8180745c50
Merge pull request 'fix build host with sudo' ( #4267 ) from fix-sudo into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4267
2025-07-09 10:03:01 +00:00
Qubasa
4008d2c165
clan-app: Better http architecture
2025-07-09 16:40:49 +07:00
Qubasa
1c269d1eaa
clan-app: init clan http api
...
clan-app: nix fmt
2025-07-09 16:40:49 +07:00
DavHau
84a21d1bab
generate_test_vars: fix it
2025-07-09 16:20:37 +07:00
kenji
28d5294292
Merge pull request 'pkgs/clan: Add test for clan flash list' ( #4281 ) from kenji/ke-test-flash into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4281
2025-07-09 09:08:34 +00:00
a-kenji
3a52189ed6
pkgs/clan: Add test for clan flash list
...
Add a test for `clan flash list`.
This tests the basic functionality, as well as that listing actually
works.
2025-07-09 11:02:24 +02:00
kenji
5c33e02e24
Merge pull request 'pkgs/clan: Add test for clan templates list' ( #4282 ) from kenji/ke-test-templates into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4282
2025-07-09 08:37:26 +00:00
a-kenji
2aa2145876
pkgs/clan: Add test for clan templates list
...
Add a test for clan templates list.
This tests the basic functionality, as well as that listing actually
works.
2025-07-09 10:29:29 +02:00
hsjobeki
fa517e1149
Merge pull request 'openapi: improve spec compat with swagger.io' ( #4279 ) from openapi into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4279
2025-07-09 07:52:49 +00:00
Johannes Kirschbauer
6855ab859d
api: rename run_blocking_task into run_task_blocking
2025-07-09 09:43:56 +02:00
Johannes Kirschbauer
3828a0cf49
openapi: improve spec compat with swagger.io
2025-07-09 09:40:06 +02:00
hsjobeki
75501a914b
Merge pull request 'API Improvements' ( #4276 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4276
2025-07-08 21:17:12 +00:00
Johannes Kirschbauer
c9b8bdd6de
api/docs: sort resources into tree order
2025-07-08 23:06:20 +02:00
hsjobeki
5a4a7e9158
Merge pull request 'UI: init cubes scene' ( #4277 ) from ui-scene into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4277
2025-07-08 20:40:42 +00:00
Johannes Kirschbauer
83ad0ae836
UI: fix lint
2025-07-08 22:36:14 +02:00
Johannes Kirschbauer
57163cf135
UI: Cubes improve memory usage
2025-07-08 22:33:52 +02:00
Johannes Kirschbauer
13185d005d
UI: dispay selected cube base
2025-07-08 22:14:44 +02:00
Johannes Kirschbauer
18a6b57673
UI: Init CubesScene
...
UI: init cube base scene
2025-07-08 22:14:42 +02:00
kenji
31f2c5106d
Merge pull request 'refactor: decouple vars stores from machine instances' ( #4269 ) from davhau/vars-new into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4269
2025-07-08 18:11:03 +00:00
Johannes Kirschbauer
4dfd151cd2
api: rename 'run_machine_deploy' into 'run_machine_update'
2025-07-08 17:21:18 +02:00
Johannes Kirschbauer
8ddd2b607e
api/disk_schema: make getter consistent
2025-07-08 17:20:59 +02:00
hsjobeki
b4544b824a
Merge pull request 'api/disk_schema: rename getter consistent' ( #4274 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4274
2025-07-08 14:43:29 +00:00
hsjobeki
50122c2215
Merge pull request 'docs: disable footer navigation' ( #4275 ) from docs-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4275
2025-07-08 14:42:36 +00:00
Johannes Kirschbauer
c65b35edc1
docs: disable footer navigation
...
This gives the content more space
Especially for plugins (options, developer tabs)
2025-07-08 16:38:33 +02:00
Johannes Kirschbauer
2eb6ee2264
api/disk_schema: make getter consistent
2025-07-08 16:31:51 +02:00
hsjobeki
ec1363aedf
Merge pull request 'UI: remove 2d-ui, its broken now since we deleted the symlinked files in #4266 ' ( #4273 ) from ui-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4273
2025-07-08 14:28:56 +00:00
Johannes Kirschbauer
90495d4157
UI: remove 2d-ui, its broken now since we deleted the symlinked files in #4266
2025-07-08 16:23:30 +02:00
kenji
b8fa4b4677
Merge pull request 'pkgs/cli: Add regression test for clan show' ( #4272 ) from kenji/ke-test-add-show into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4272
2025-07-08 14:01:02 +00:00
a-kenji
ec8effcd46
pkgs/cli: Add regression test for clan show
2025-07-08 15:55:01 +02:00
hsjobeki
09b8e2f49c
Merge pull request 'Templates/default: move clan configuration into its own file' ( #4262 ) from templates into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4262
2025-07-08 13:46:19 +00:00
Johannes Kirschbauer
7fefc8e3b2
Tests: dont expect a hardware-configuration.nix file
2025-07-08 15:34:16 +02:00
Johannes Kirschbauer
62cadb8fbe
Docs: mention clan.nix file, which is present in the default template now
2025-07-08 14:58:24 +02:00
Johannes Kirschbauer
f8748d021b
tests: dont expect .clan-flake file, it is not strictly required
2025-07-08 14:58:24 +02:00
Jörg Thalheim
f9740909e9
checks/nixos-test-flash: increase ram to workaround gc bug in nix
2025-07-08 14:25:44 +02:00
Jörg Thalheim
b42395234d
fix build host with sudo
2025-07-08 14:25:44 +02:00
kenji
b84df095a2
Merge pull request 'templates(minimal): Add .envrc' ( #4268 ) from kenji/ke-template into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4268
2025-07-08 11:58:36 +00:00
DavHau
dbd48a54a3
refactor: decouple vars stores from machine instances
...
Stores now get machine context from generator objects instead of storing
it internally. This enables future machine-independent generators and
reduces coupling.
- StoreBase.__init__ only takes flake parameter
- Store methods receive machine as explicit parameter
- Fixed all callers to pass machine context
2025-07-08 18:30:16 +07:00
Luis Hebendanz
3b2f0e2029
Merge pull request 'Add middleware interface to clan-app' ( #4265 ) from Qubasa/clan-core:generalize_webview into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4265
2025-07-08 11:16:36 +00:00
Qubasa
639d227055
clan-app: Fix delete tasks
...
clan-app: Fix delete tasks
2025-07-08 18:11:59 +07:00
a-kenji
7ac4d257d9
templates(minimal): Add .envrc
...
Add .envrc also to the minimal template to homogenize our templates.
2025-07-08 13:09:04 +02:00
brianmcgee
e45e809553
Merge pull request 'prep-ui-version2' ( #4266 ) from prep-ui-version2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4266
2025-07-08 10:57:54 +00:00
Qubasa
48c7613556
clan-cli: Add verb 'cancel' to openapi
2025-07-08 17:43:14 +07:00
Brian McGee
fe89d954da
fix(ui): display required asterisk in label
2025-07-08 11:41:34 +01:00
Brian McGee
b8604d334b
feat(ui): prep V2
...
Preparation for rebuilding the UI with V2 components.
2025-07-08 11:41:33 +01:00
Qubasa
50cbe3c825
clan-app: Move json.loads to try catch
2025-07-08 17:38:24 +07:00
Qubasa
acab3b8905
clan-app: Ignore ruff errors
2025-07-08 17:32:59 +07:00
Qubasa
eb6166796c
clan-app: Generalize architecture for API requests
2025-07-08 17:32:59 +07:00
Qubasa
6d8fd42faa
clan-app: Add plug and play middleware interface
2025-07-08 17:32:59 +07:00
Qubasa
494830326d
clan-app: Add plug and play middleware interface
2025-07-08 17:32:59 +07:00
Luis Hebendanz
edfad04305
Merge pull request 'fix_ruff_regression' ( #4264 ) from Qubasa/clan-core:fix_ruff_regression into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4264
2025-07-08 10:30:45 +00:00
Qubasa
81d3437ff7
clan-cli: Fix Ruff linting errors
...
clan-cli: Ruff fixes
ignore noqa lint
fix more ruff issues
2025-07-08 17:25:02 +07:00
Qubasa
d656167cf2
ruff: Ignore TRY301 'raise-within-try' as there are legitimate reasons to do this
2025-07-08 17:23:32 +07:00
Qubasa
49e83954c5
clan-cli: Fix regression in ruff linter, where linter rules got overriden by local pyproject.toml
...
clan-app: Fix ruff regression where linter rules got overriden by local pyproject.toml
2025-07-08 17:23:32 +07:00
Johannes Kirschbauer
8d1e0353f8
test: don't expect a machines folder
2025-07-08 11:53:20 +02:00
Johannes Kirschbauer
05658589a0
Docs: execute 'clan show' as first step
2025-07-08 10:24:01 +02:00
Johannes Kirschbauer
809a115e58
clan/show: fix cli command
2025-07-08 10:15:35 +02:00
Johannes Kirschbauer
79d8d0707b
Templates/default/modules/gnome: Add doc-comment - what the module does, how to use it
2025-07-08 10:06:22 +02:00
Johannes Kirschbauer
b2179c9293
Templates/default: remove predefined machines
2025-07-08 10:05:35 +02:00
Johannes Kirschbauer
e33af96705
Templates/default: move clan configuration into its own file
...
Doing this with the idea in mind, that flake-parts / default should define the same clan in clan.nix
We can add a CI check to ensure both are the same files
They got desynced in the past and describe completely different clans now
2025-07-08 10:04:17 +02:00
Johannes Kirschbauer
14a221d1d1
Docs: remove 'replaces' sentence; it is not describing any purpose
2025-07-08 10:01:51 +02:00
brianmcgee
9f9ab3de19
Merge pull request 'feat(ui): SidebarPane component' ( #4248 ) from ui/sidebar-pane into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4248
2025-07-08 07:37:47 +00:00
hsjobeki
9739a5ae2b
Merge pull request 'templates: rename 'new_clan' to default' ( #4244 ) from templates into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4244
2025-07-08 07:31:22 +00:00
Mic92
54446d751f
Merge pull request 'checks/backup: no longer depend on self' ( #4258 ) from self into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4258
2025-07-07 19:57:30 +00:00
Jörg Thalheim
7bc8e091a5
checks/backup: no longer depend on self
2025-07-07 21:51:51 +02:00
Mic92
3462d458ac
Merge pull request 'override-inputs: filter out self' ( #4257 ) from improve-perf into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4257
2025-07-07 19:32:51 +00:00
Jörg Thalheim
bd42d67b0c
override-inputs: filter out self
2025-07-07 21:25:33 +02:00
Mic92
d99ca36f9f
Merge pull request 'checks/eval-module-clan-vars: optimize to use filtered source' ( #4255 ) from borgbackup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4255
2025-07-07 19:02:25 +00:00
Jörg Thalheim
57f9cd9eee
checks/eval-module-clan-vars: optimize to use filtered source
...
- Replace self.filter with lib.fileset for more precise filtering
- Remove unnecessary clan-core dependency from the test
- Test only needs lib and pkgs, not the full flake context
- Prevents unnecessary rebuilds when unrelated files change
2025-07-07 20:55:04 +02:00
Mic92
a9ec94b0df
Merge pull request 'checks/inventory: optimize eval tests to use filtered sources' ( #4254 ) from borgbackup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4254
2025-07-07 18:48:58 +00:00
Jörg Thalheim
c64dbceceb
checks/inventory: optimize eval tests to use filtered sources
...
Replace full flake source (self) with minimal filtered filesets to prevent
unnecessary rebuilds when unrelated files change. All three inventory eval
tests now use the same unified fileset containing only necessary files.
This follows the same optimization pattern applied to other eval tests,
significantly reducing rebuild frequency during development.
2025-07-07 20:41:20 +02:00
Mic92
5d924e0c98
Merge pull request 'docs: no longer depend on self' ( #4253 ) from borgbackup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4253
2025-07-07 18:31:35 +00:00
Jörg Thalheim
6a6688019b
docs: no longer depend on self
2025-07-07 20:24:11 +02:00
Mic92
f33172fa73
Merge pull request 'don't rebuild eval tests on each ci run' ( #4252 ) from borgbackup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4252
2025-07-07 18:13:57 +00:00
Jörg Thalheim
00914311a4
don't rebuild eval tests on each ci run
2025-07-07 20:05:45 +02:00
Mic92
ceeb40d9ac
Merge pull request 'checks/borgbackup: don't rebuild on every pull request' ( #4251 ) from borgbackup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4251
2025-07-07 17:44:16 +00:00
Jörg Thalheim
afab33056e
checks/borgbackup: don't rebuild on every pull request
2025-07-07 19:35:48 +02:00
Mic92
a5183f4b4c
Merge pull request 'avoid shebang in update-private-flake-inputs' ( #4250 ) from fix-devflake-tryeval into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4250
2025-07-07 16:56:21 +00:00
Jörg Thalheim
a686d7523b
avoid shebang in update-private-flake-inputs
2025-07-07 18:48:11 +02:00
Mic92
56b784992d
Merge pull request 'devFlake: don't load if sources have been filtered out' ( #4249 ) from fix-devflake-tryeval into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4249
2025-07-07 16:47:27 +00:00
Jörg Thalheim
5f723dc376
devFlake: don't load if sources have been filtered out
2025-07-07 18:38:01 +02:00
Brian McGee
1609989734
feat(ui): SidebarPane component
...
* implement Divider component using Kobalte's Separator
* refine read only state of form components to match the Sidebar Pane design
* introduce a SidebarPane component with sections that can toggle between editing and view states.
2025-07-07 17:31:58 +01:00
Mic92
0c07d5cfe0
Merge pull request 'add dev flake pattern' ( #4245 ) from private-flake into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4245
2025-07-07 16:02:29 +00:00
Jörg Thalheim
9c37ef4cbe
add dev flake pattern
...
This allows us to have dev dependencies which are not propagated to the user.
2025-07-07 15:59:09 +00:00
Jörg Thalheim
783b6a8b06
add gitea action to update private flake inputs
2025-07-07 15:59:09 +00:00
Jörg Thalheim
4f13049ee2
put flake input overrides into a helper function
2025-07-07 15:59:09 +00:00
Johannes Kirschbauer
2f4f303048
create/clan: do initial commit
2025-07-07 15:50:00 +00:00
Johannes Kirschbauer
d02868b950
templates: add .gitignore files to all templates
2025-07-07 15:50:00 +00:00
Johannes Kirschbauer
4f7d82671f
Templates: remove 'minimal-flake-parts'
2025-07-07 15:50:00 +00:00
Johannes Kirschbauer
0dce3fc7ec
templates: rename 'new_clan' to default
2025-07-07 15:50:00 +00:00
brianmcgee
a635f9c6fe
Merge pull request 'ui: Modal component' ( #4241 ) from feat/modal into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4241
2025-07-07 15:16:50 +00:00
Mic92
a8ed1c30e4
Merge pull request 'make treefmt work with git-worktrees' ( #4246 ) from pytest into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4246
2025-07-07 15:07:53 +00:00
Jörg Thalheim
c0c41d52bd
make treefmt work with git-worktrees
2025-07-07 16:55:36 +02:00
hsjobeki
bb236bb543
Merge pull request 'Docs: add missing documentation to api functions' ( #4243 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4243
2025-07-07 14:02:08 +00:00
Johannes Kirschbauer
d7cf79faa7
openapi: error on missing api function docstring
2025-07-07 15:48:36 +02:00
Johannes Kirschbauer
dab11cb020
docs/api: add docstrings to {list_mdns_services, set_clan_details}
2025-07-07 15:47:14 +02:00
Johannes Kirschbauer
f2cb6fef41
api: remove unused get_directory
2025-07-07 15:45:51 +02:00
Johannes Kirschbauer
655b87ad04
docs/api: add docstrings to {run_machine_install,run_machine_deploy}
2025-07-07 15:41:02 +02:00
Johannes Kirschbauer
d462ae501e
docs/api: add docstrings to {check_machine_ssh_login}
2025-07-07 15:38:09 +02:00
Johannes Kirschbauer
59a8c402ba
docs/api: add docstrings to {delete_machine}
2025-07-07 15:36:16 +02:00
Johannes Kirschbauer
3b309ea74b
docs/api: add docstrings to {get_flash_options, run_machine_flash}
2025-07-07 15:34:49 +02:00
Johannes Kirschbauer
508cd3c784
docs/api: add docstrings to {get_clan_details}
2025-07-07 15:31:06 +02:00
Johannes Kirschbauer
2bff7403df
docs/api: add docstrings to {create_clan}
2025-07-07 15:29:19 +02:00
Johannes Kirschbauer
b5a6e809d0
docs/api: add docstrings to {get_generators, run_generators}
2025-07-07 15:22:44 +02:00
Johannes Kirschbauer
ec28c5c307
api/machines: document {get_machine,get_machine_details}
2025-07-07 15:13:23 +02:00
hsjobeki
10f9e5d11b
Merge pull request 'api/generators: remove term 'vars' interact purely with 'generators'' ( #4242 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4242
2025-07-07 13:04:00 +00:00
Johannes Kirschbauer
b8ba8b79ca
api/check_machine_ssh_reachable: add function docs
2025-07-07 15:02:35 +02:00
Johannes Kirschbauer
fd07d02d2d
openapi: warn on missing description
2025-07-07 14:52:49 +02:00
Johannes Kirschbauer
2a3d1efc6f
api: expose docstring as function description
2025-07-07 14:51:15 +02:00
Johannes Kirschbauer
947e0a5488
openapi: add strict verb checking
2025-07-07 14:35:56 +02:00
Mic92
57b5520143
Merge pull request 'Add missing f to f-string' ( #4234 ) from jfly/clan-core:oops-f-string into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4234
2025-07-07 12:30:20 +00:00
Mic92
9fd1031f4d
Merge pull request 'Fix bug? member_id -> member_ip' ( #4235 ) from jfly/clan-core:possible-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4235
2025-07-07 12:30:08 +00:00
Johannes Kirschbauer
c382e8f1f3
api/tasks: rename 'cancel_task' into 'delete_task'
2025-07-07 14:07:53 +02:00
Johannes Kirschbauer
cf92303f31
api/hw: rename 'describe_machine_hardware' into 'get_machine_hardware_summary'
2025-07-07 14:05:57 +02:00
Johannes Kirschbauer
80d0dc9805
api/hw: rename generate_machine_hardware_info into 'run'
2025-07-07 14:04:39 +02:00
Johannes Kirschbauer
4e2cbb188c
api/generators: remove term 'vars' interact purely with 'generators'
2025-07-07 13:59:12 +02:00
Brian McGee
eb6460fb40
feat(ui): update playwright to match version in nixpkgs
2025-07-07 12:51:22 +01:00
hsjobeki
155bd36d2b
Merge pull request 'api/tasks: prefix impure actions with run' ( #4239 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4239
2025-07-07 11:28:07 +00:00
Johannes Kirschbauer
40ea5bf591
api/machine checks: rename, add checkResult
2025-07-07 13:13:00 +02:00
hsjobeki
0cd9c84de0
Merge pull request 'machine/host: degrade into info and add docs' ( #4238 ) from host-info into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4238
Reviewed-by: Luis Hebendanz <consulting@qube.email >
2025-07-07 11:10:05 +00:00
Johannes Kirschbauer
e1ea44a2cc
api/clan: rename 'update_clan_meta' -> 'set_clan_details'
2025-07-07 12:51:32 +02:00
Johannes Kirschbauer
7c4865e8b0
api/keygen: add todo comment
2025-07-07 12:49:37 +02:00
Johannes Kirschbauer
b032cd4a29
api/admin: remove maybe_get_admin_public_keys
2025-07-07 12:43:11 +02:00
DavHau
61edc1e06f
Refactor StoreBase to take machine name string instead of Machine object
...
- Updated StoreBase.__init__ to accept machine: str and flake: Flake
- Modified all StoreBase subclasses (in_repo, vm, fs, sops, password_store) to match new signature
- Added select_machine method to Flake class for machine-specific attribute selection
- Updated Machine.select to use the new Flake.select_machine method
- Fixed all test cases to pass machine name and flake to store constructors
- Maintained backward compatibility by keeping the same external API
This reduces coupling between the store system and the Machine class,
making the architecture more modular and flexible.
2025-07-07 10:24:11 +00:00
Johannes Kirschbauer
c369f3b5d1
api/tasks: prefix impure actions with run
2025-07-07 12:09:43 +02:00
hsjobeki
0cc1f072f7
Merge pull request 'api/clan: rename 'show_clan_meta' -> 'get_clan_details'' ( #4236 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4236
2025-07-07 10:00:10 +00:00
Johannes Kirschbauer
a2a011a47f
machine/host: degrade into info and add docs
2025-07-07 11:52:46 +02:00
Brian McGee
e1796e19e4
feat(ui): refine Fieldset API
2025-07-07 10:51:43 +01:00
Johannes Kirschbauer
972adc7a7c
api: chore rename outdated reference
2025-07-07 10:53:32 +02:00
Johannes Kirschbauer
e1b4f296e3
api: rename 'show_mdns' -> 'list_mdns_services'
2025-07-07 10:49:46 +02:00
Johannes Kirschbauer
1cb2156d87
api: rename to get_flash_options
2025-07-07 10:48:14 +02:00
Johannes Kirschbauer
84703fa293
docs: improve docstring for 'list_block_devices'
2025-07-07 10:46:26 +02:00
Johannes Kirschbauer
0e10122d54
api/clan: rename 'show_clan_meta' -> 'get_clan_details'
2025-07-07 10:41:00 +02:00
brianmcgee
ecd731024c
Merge pull request 'feat(ui): alert component' ( #4199 ) from ui/alerts into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4199
2025-07-07 08:11:13 +00:00
Jeremy Fleischman
e0da575201
Fix bug? member_id -> member_ip
...
(I stumbled across this while reading code, I haven't tested this at
all.)
2025-07-07 00:49:45 -07:00
Jeremy Fleischman
3577c689bd
Add missing f to f-string
2025-07-07 00:48:32 -07:00
renovate[bot]
885103bfa4
chore(deps): lock file maintenance
2025-07-07 05:40:16 +00:00
Michael Hoang
afc1ca37bd
Merge pull request 'cli: don't log every public key we find' ( #4233 ) from push-lynrrnswopmw into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4233
2025-07-07 05:38:03 +00:00
Michael Hoang
4aa536a1bf
cli: don't log every public key we find
2025-07-07 15:23:46 +10:00
Michael Hoang
c61dfbf8dd
Merge pull request 'treewide: don't generate SSH keys with builder hostname' ( #4232 ) from push-suwrloyoqvlq into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4232
2025-07-07 04:51:21 +00:00
Michael Hoang
e6785fa1d0
treewide: don't generate SSH keys with builder hostname
2025-07-07 14:39:57 +10:00
Michael Hoang
89ea01fd04
Merge pull request 'docs: misc improvements' ( #4231 ) from push-xlwnnlrownnv into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4231
2025-07-07 04:03:33 +00:00
Michael Hoang
a8a08e21e4
clanServices/sshd: add README
2025-07-07 13:54:26 +10:00
Michael Hoang
700f571598
docs: fix highlighting in code block
2025-07-07 13:54:26 +10:00
Michael Hoang
08c15b3d9b
docs: remove colon from headings
2025-07-07 13:54:26 +10:00
lassulus
2848b6d5d6
Merge pull request 'vars password-store: fix secret mangling due to string encoding' ( #4227 ) from pass-fix-bytes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4227
2025-07-07 00:50:58 +00:00
lassulus
ddc1059799
vars password-store: fix secret mangling due to string encoding
2025-07-07 02:35:17 +02:00
renovate[bot]
b690515dd7
Update data-mesher digest to a2166c1
2025-07-07 00:10:13 +00:00
lassulus
e9cef9c7c1
Merge pull request 'rename lingering clan.vars -> clan.core.vars' ( #4224 ) from rip_clan_vars into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4224
2025-07-06 23:33:31 +00:00
lassulus
ca69864a20
rename lingering clan.vars -> clan.core.vars
2025-07-07 00:59:52 +02:00
hsjobeki
5436f284fb
Merge pull request 'API: refactor into resource oriented names' ( #4223 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4223
2025-07-06 19:11:31 +00:00
Johannes Kirschbauer
00df032635
vars/api: rename 'get_generators_closure' into 'get_machine_generators'
2025-07-06 20:57:42 +02:00
Johannes Kirschbauer
a2c016718a
api/hardware: consolidate into 'describe_machine_hardware'
2025-07-06 20:57:42 +02:00
Johannes Kirschbauer
d1abebf068
api/inventory: remove 'inventory' from api entirely
2025-07-06 20:57:42 +02:00
Johannes Kirschbauer
9635fb03b7
api/flash: refactor into 'list_flash_options'
2025-07-06 20:57:42 +02:00
Johannes Kirschbauer
f48c596617
vars/api: rename, unregister some unused vars functions
2025-07-06 20:57:42 +02:00
Johannes Kirschbauer
0589c71601
Vars: rename public functions into 'create_machine_vars'
2025-07-06 20:57:42 +02:00
Johannes Kirschbauer
a2c2d73e49
Vars: rename 'keygen' to 'create_secrets_user'
2025-07-06 20:57:42 +02:00
hsjobeki
99b22dfcbf
Merge pull request 'Templates/cli: move display command into it own category' ( #4222 ) from clan-templates into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4222
2025-07-06 18:26:45 +00:00
Johannes Kirschbauer
cd04686663
Docs: update index
2025-07-06 20:06:17 +02:00
Johannes Kirschbauer
2b3e847c28
machine: rename standalone 'get_host' to 'get_machine_host'
2025-07-06 19:47:58 +02:00
Johannes Kirschbauer
d0ec4fd8e6
Templates/cli: move display command into it own category
2025-07-06 19:36:57 +02:00
hsjobeki
bb5c523ac8
Merge pull request 'Templates: remove InputPrio and related classes' ( #4221 ) from clan-templates into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4221
2025-07-06 17:19:31 +00:00
Johannes Kirschbauer
4df4f5220b
Templates: remove InputPrio and related classes
2025-07-06 19:08:45 +02:00
renovate[bot]
a082fd2ed9
Lock file maintenance
2025-07-06 15:00:31 +00:00
hsjobeki
3161c10aa8
Merge pull request 'templates_url: add clan template url test' ( #4216 ) from clan-templates into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4216
2025-07-06 14:54:42 +00:00
Johannes Kirschbauer
7ad8ed1af0
Templates: fix invalid mock flake
2025-07-06 16:43:38 +02:00
Johannes Kirschbauer
94919dc9b8
Fix/ui: update create argument
2025-07-06 15:48:35 +02:00
Johannes Kirschbauer
1502cfa4a7
Templates: migrate clan templates to flake identifiers
2025-07-06 15:37:10 +02:00
Johannes Kirschbauer
cce0207225
Templates: remove outdated check for 'configuration.nix' in machine templates
2025-07-06 15:37:10 +02:00
Johannes Kirschbauer
38f98645ac
Templates: replace leftover MachineID, by Machine
2025-07-06 15:37:10 +02:00
Johannes Kirschbauer
74d2ae0619
templates_url: add clan template url test
2025-07-06 15:37:10 +02:00
lassulus
c122201ff2
Merge pull request 'Revert "make host key check an enum instead of an literal type"' ( #4220 ) from revert_host_key_check into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4220
2025-07-06 13:19:00 +00:00
lassulus
e72795904d
Revert "make host key check an enum instead of an literal type"
...
This reverts commit 543c518ed0 .
2025-07-06 14:51:19 +02:00
hsjobeki
32ddb4ffa7
Merge pull request 'Templates/list: display templates via exposed nix value' ( #4219 ) from templates-list into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4219
2025-07-06 12:49:58 +00:00
Johannes Kirschbauer
db6220b57b
Templates/list: display templates via exposed nix value
2025-07-06 14:37:03 +02:00
lassulus
e929f36f80
Merge pull request 'vars/password-store: replace passBackend option with passPackage' ( #4134 ) from lassulus/passage_compat into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4134
2025-07-06 11:44:27 +00:00
hsjobeki
f71460c4f9
Merge pull request 'clan-cli: fix incorrect field name in deploy warning messages. The warning for missing buildHost/targetHost always showed targetHost in the path, even when buildHost was the missing field.' ( #4217 ) from pr-4215 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4217
2025-07-06 10:54:55 +00:00
lassulus
8302f3ffde
vars/password-store: replace passBackend option with passPackage
...
The `clan.core.vars.settings.passBackend` option has been replaced with
`clan.vars.password-store.passPackage` to provide better type safety and
clearer configuration.
Changes:
- Remove problematic mkRemovedOptionModule that caused circular dependency
- Add proper option definition with assertion-based migration
- Users setting the old option get clear migration instructions
- Normal evaluation continues to work for users not using the old option
Migration: Replace `clan.core.vars.settings.passBackend = "passage"`
with `clan.vars.password-store.passPackage = pkgs.passage`
2025-07-06 12:46:39 +02:00
lassulus
bd82de6001
fix(flake): handle file paths with line numbers in cache existence check
...
The is_cached method now correctly handles store paths that have line
numbers appended (e.g., /nix/store/file.nix:123:456). Previously, these
paths would fail the existence check because the exact path with line
numbers doesn't exist as a file.
The fix adds a helper method that:
- First checks if the exact path exists
- If not, and the path contains colons, validates that the suffix
consists only of numbers (line:column format)
- If valid, strips the line numbers and checks the base file path
This ensures that cached references to specific file locations are
properly validated while avoiding false positives with files that
have colons in their names.
2025-07-06 12:44:15 +02:00
adeci
06613de825
clan-cli: fix incorrect field name in deploy warning messages. The warning for missing buildHost/targetHost always showed targetHost in the path, even when buildHost was the missing field.
2025-07-06 12:44:02 +02:00
hsjobeki
76af63ee1c
Merge pull request 'lib/get_host: improve abstraction, turn missconfiguration into a warning' ( #4201 ) from cli-fixup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4201
2025-07-06 10:38:03 +00:00
Johannes Kirschbauer
3baa43fd87
cli/update: refactor machine selection logic into 'get_machines_for_update'
2025-07-06 12:27:28 +02:00
Johannes Kirschbauer
a6b8ca06ab
machines/list: rename helper to instantiate_inventory_to_machines
2025-07-06 12:24:16 +02:00
Johannes Kirschbauer
f7faf2cd63
machines/list: remove duplicate query_machines_by_tags
2025-07-06 12:23:47 +02:00
Johannes Kirschbauer
bff3908bb1
CLI: update requireExplicitUpdate in help
2025-07-06 12:22:25 +02:00
Johannes Kirschbauer
d0613b4030
cli: return validated list from validate_machine_names
2025-07-06 12:22:00 +02:00
Johannes Kirschbauer
52b711667e
lib/get_host: improve abstraction, turn missconfiguration into a warning
...
Motivation: A warning should encourage consistent usage of inventory.machines setting targetHost inside the machine should be considered a custom override
Changing the warning strings to avoid the term 'nix'/'json' both inventory and nixos machines are nix features
2025-07-06 12:08:00 +02:00
lassulus
13d6db98d1
Merge pull request 'better_select_output' ( #4213 ) from better_select_output into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4213
2025-07-06 00:24:06 +00:00
lassulus
195134dd5e
clan_cli: better select debug output
2025-07-06 01:17:55 +02:00
lassulus
0670f0ad32
clan_cli flake: remove apply from select, as it will break stuff in horrible ways
...
Since apply changes the structure of the retuned value, the cache will
be confused about the structure and in subsequent request will use this
wrong structure.
For example: we would use builtins.attrNames on inputs, the flake will
forever think that inputs is a list of strings and will report errors
whenever we try to fetch subkeys from it
2025-07-06 01:17:55 +02:00
lassulus
daf843eeab
clan_cli run: add trace runOption to disable verbose traces in debug mode
2025-07-05 19:48:50 +02:00
lassulus
291b742fd7
Merge pull request 'clan_cli machines update: remove caching of sometimes missing pass config' ( #4212 ) from fix_update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4212
2025-07-05 17:42:45 +00:00
lassulus
f7d6c23aaa
clan_cli machines update: remove caching of sometimes missing pass config
...
This config value is not set if people don't use pass, it's also at the wrong location
We could cache it with a maybe, but we plan to move it anyway
2025-07-05 18:39:53 +02:00
DavHau
d143359a2d
refactor: reduce coupling to Machine class in vars module
...
- Change Generator class to store machine name as string instead of Machine reference
- Update Generator.generators_from_flake() to only require machine name and flake
- Refactor check_vars() to accept machine name and flake instead of Machine object
- Create Machine instances only when needed for specific operations
This continues the effort to reduce dependencies on the Machine class,
making the codebase more modular and easier to refactor.
2025-07-05 16:30:05 +07:00
DavHau
448e60f866
refactor: remove Machine.vars_generators() method
...
Replace all calls to machine.vars_generators() with direct calls to
Generator.generators_from_flake() to make the dependency more explicit
and remove unnecessary indirection.
This reduces coupling to the Machine class, making the codebase more
modular and easier to refactor in the future.
2025-07-05 15:26:31 +07:00
renovate[bot]
324e934204
chore(deps): update disko digest to da6109c
2025-07-04 16:50:11 +00:00
Mic92
3f6e5968b5
Merge pull request 'Qubasa-hsjobeki/bump-nixpkgs' ( #4205 ) from Qubasa-hsjobeki/bump-nixpkgs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4205
2025-07-04 16:47:23 +00:00
Jörg Thalheim
e4c8aba5bc
zerotierone: disable tests on macos
2025-07-04 18:39:01 +02:00
Jörg Thalheim
76503b2a92
terminate_process_group: also properly yield iterator when we return early
2025-07-04 18:39:01 +02:00
Jörg Thalheim
d585052007
migrate all projects to python 3.13 linting
2025-07-04 18:39:01 +02:00
Jörg Thalheim
65904d8d8e
clan-cli: handle None in union types to prevent TypeError
...
Add comprehensive test coverage for union types with None to prevent
regression of the issubclass() TypeError that was occurring when
checking if None is in a union type.
2025-07-04 18:39:01 +02:00
Jörg Thalheim
d5aa917ee7
migrate all projects to python 3.13 linting
2025-07-04 18:39:01 +02:00
Mic92
cb9284360f
Merge pull request 'change install test to run clan outside of the VM' ( #3906 ) from vm-test into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3906
2025-07-04 15:17:14 +00:00
Qubasa
3f1fdc0aae
treefmt/ruff: Set python lint version to 3.13. Fix all new lints coming up.
2025-07-04 17:11:31 +02:00
Johannes Kirschbauer
b35ca4f1a8
Chore: bump nixpkgs
2025-07-04 17:11:31 +02:00
Jörg Thalheim
76e653f37f
nixoTestLib: split setting up function for port-forwarding and setuping up flake
2025-07-04 16:56:42 +02:00
Michael Hoang
10737f7d94
Merge pull request 'clanServices/wifi: fix autoConnect setting not doing anything' ( #4204 ) from push-msokoouryrwq into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4204
2025-07-04 14:33:49 +00:00
Michael Hoang
eb54fdc741
clanServices/wifi: fix autoConnect setting not doing anything
2025-07-05 00:05:48 +10:00
pinpox
4aa90f009f
Merge pull request 'Re-introduce state-version option' ( #4179 ) from state-version-option-again into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4179
2025-07-04 14:02:05 +00:00
Jörg Thalheim
247151e93f
only override identify/host_key_check in a single place
2025-07-04 14:36:05 +02:00
Jörg Thalheim
543c518ed0
make host key check an enum instead of an literal type
...
this is more typesafe at runtime.
2025-07-04 14:36:05 +02:00
Jörg Thalheim
7f4f11751e
nixosTestLib: use xargs for copying store inputs
2025-07-04 14:36:05 +02:00
Jörg Thalheim
a53efb9386
nixosTestLib: substitute dependencies on tools in
2025-07-04 14:36:05 +02:00
Jörg Thalheim
c509f333e4
nixosTestLib: fix various linting issues
2025-07-04 14:36:05 +02:00
Jörg Thalheim
ea93d8fec7
inline create_test_machine again
2025-07-04 14:36:05 +02:00
Jörg Thalheim
68b2aaea89
setup_nix_in_nix: use cp intead of shutil
...
it's faster and handles symlinks
2025-07-04 14:36:05 +02:00
Jörg Thalheim
1e7453ab04
move nixosTestLib to pkgs/testing
2025-07-04 14:36:05 +02:00
Jörg Thalheim
c148ece02e
move setup_nix_in_nix into nixos_test_lib
2025-07-04 14:36:02 +02:00
Jörg Thalheim
b526242744
share more code between installation and update test
2025-07-04 14:14:28 +02:00
Jörg Thalheim
76b0a9bf13
add -i option to update-hardware-config
2025-07-04 14:14:28 +02:00
Jörg Thalheim
541732462b
add port_utils module for installation testions
2025-07-04 14:14:28 +02:00
Jörg Thalheim
1558a366de
bump clan-core-for-checks
2025-07-04 14:14:28 +02:00
Jörg Thalheim
6aab8ffd0c
change install test to run clan outside of the VM
2025-07-04 14:14:28 +02:00
pinpox
ae9d219dea
Merge branch 'main' into state-version-option-again
2025-07-04 11:56:15 +00:00
hsjobeki
899051a570
Merge pull request 'clan_lib/openapi: add openapi rendering' ( #4200 ) from lib-openapi into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4200
2025-07-04 11:54:13 +00:00
hsjobeki
a44740d902
Merge pull request 'Clan_lib: add filtering by tag to list API' ( #4197 ) from cli-fixup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4197
2025-07-04 11:53:43 +00:00
Johannes Kirschbauer
ba0397242f
api: rename script to openapi.py
2025-07-04 13:40:59 +02:00
Luis Hebendanz
79560ac202
Merge pull request 'clan-app: Implement dynamic groups and array based filtering of logs and groups' ( #4190 ) from Qubasa/clan-core:add_clan_group into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4190
2025-07-04 11:06:50 +00:00
Qubasa
52aaad272f
clan-app: Implement dynamic log groups into javascript callApi
...
nix fmt
2025-07-04 17:49:00 +07:00
Johannes Kirschbauer
62c1db9769
Docs: init redoc internal rest inspired docs
2025-07-04 12:45:39 +02:00
Johannes Kirschbauer
b41029ea48
clan_lib/openapi: add openapi rendering
2025-07-04 12:09:16 +02:00
pinpox
a0a9cef2a6
Add state-version nixos option
...
This reverts commit 695574988e .
2025-07-04 11:54:12 +02:00
Brian McGee
1f26135381
feat(ui): alert component
2025-07-04 10:51:18 +01:00
brianmcgee
14b428216d
Merge pull request 'ui/form-components' ( #4118 ) from ui/form-components into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4118
2025-07-04 08:30:22 +00:00
Johannes Kirschbauer
91df5c258e
lib/convert_inventory_to_machines: add classmethod for common conversion of Machine and InventoryMachine
2025-07-04 10:18:14 +02:00
Johannes Kirschbauer
fcb38820ec
lib/get_host: improve abstraction, turn missconfiguration into a warning
...
Motivation: A warning should encourage consistent usage of inventory.machines setting targetHost inside the machine should be considered a custom override
Changing the warning strings to avoid the term 'nix'/'json' both inventory and nixos machines are nix features
2025-07-04 10:02:06 +02:00
Johannes Kirschbauer
6d85cc0ff2
Clan_lib: add filtering by tag to list API
2025-07-04 09:48:21 +02:00
Johannes Kirschbauer
10fbae0c15
cli: move some references to duplicate list machines
2025-07-04 09:32:43 +02:00
Qubasa
aef1edf8e3
clan_lib: Move load_in_all_api_functions to clan_lib
2025-07-04 14:22:40 +07:00
Qubasa
18735a150f
clan_lib: Heavily simplified log_manager and test suite to concentrate on actually used features
2025-07-04 14:05:31 +07:00
Qubasa
c354a87765
clan_lib: Add better docstrings to log_manager
2025-07-04 13:35:34 +07:00
Qubasa
70d57cb267
clan_lib: expose log_manager with API.register properly
2025-07-04 13:19:09 +07:00
Qubasa
24b8cb799a
clan-cli: Print function name to raise for unsupported types by API.register
2025-07-04 13:17:01 +07:00
renovate[bot]
68e61d66d7
chore(deps): update sops-nix digest to 3633fc4
2025-07-04 05:30:12 +00:00
DavHau
2e191d7db8
Merge pull request 'reverting 4c2bb0791d47c91130541333b296b2e8a39c4d08' ( #4194 ) from davhau/dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4194
2025-07-04 03:51:22 +00:00
DavHau
969b7606a6
reverting 4c2bb0791d
2025-07-04 10:35:30 +07:00
Mic92
631d17b6e9
Merge pull request 'actually import state-version' ( #4193 ) from fix-state-version into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4193
2025-07-03 18:32:15 +00:00
Jörg Thalheim
ba5b81abf0
actually import state-version
2025-07-03 20:19:19 +02:00
lassulus
1bcd2be478
Merge pull request 'refactor: remove _serialized field and implement efficient vars selection' ( #4187 ) from remove_serialized into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4187
2025-07-03 17:18:27 +00:00
lassulus
a6409f921b
refactor: remove _serialized field and implement efficient vars selection
...
- Remove _serialized field from vars interface to prevent serialization
errors with throwing passBackend field
- Implement direct selection of generator fields using multi-select syntax
- Refactor vars_generators() to use new Generator.from_flake() method that
selects only safe fields (avoiding non-serializable values)
- Remove unused legacy methods: Generator.from_json(), Var.from_json(),
Prompt.from_json()
- Update precaching to match new selection approach
This fixes the serialization errors that were preventing vars from working
with the new password-store implementation by avoiding the problematic
_serialized field entirely.
2025-07-03 18:53:36 +02:00
lassulus
8f9d88a104
flake: prevent outPath in multiselect to avoid serialization issues
...
When using multiselect with outPath like {outPath,?meta}, nix evaluation
collapses the attrset to just the outPath string, breaking further selection.
Add validation during selector parsing to catch this and provide a clear error.
2025-07-03 18:53:36 +02:00
Brian McGee
9003204b54
fix(ui): disabled storybook derivation
...
Something about passing orientation in any of the Form stories is causing the browser to crash
`npm run test-storybook-static` works fine in the devshell.
Disabling for now as it's slowing down development.
2025-07-03 17:50:42 +01:00
Brian McGee
7939cfc9a9
feat(ui): flatten the Field pattern and introduce Orienter component
2025-07-03 17:50:41 +01:00
Brian McGee
7232892feb
feat(ui): simplify timeout speedup for button stories
2025-07-03 17:50:40 +01:00
Brian McGee
c3ba72e82c
feat(ui): Combobox component and style tooltip for label
2025-07-03 17:50:40 +01:00
Brian McGee
17b4f95055
feat(ui): simplify form components
...
Better pass through to the underlying Kobalte API without re-defining types.
2025-07-03 17:50:39 +01:00
Brian McGee
3c72ad1c92
fix(ui): hover and inverted colors for checkbox
2025-07-03 17:50:39 +01:00
Brian McGee
5b46136ca8
feat(ui): add fieldset component
2025-07-03 17:50:38 +01:00
Brian McGee
04c59c76ee
feat(ui): add form field with text, textarea and checkbox support
2025-07-03 17:50:38 +01:00
hsjobeki
fbb93c8412
Merge pull request 'docs: update vpn setup instructions' ( #4192 ) from docs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4192
2025-07-03 14:32:13 +00:00
Johannes Kirschbauer
e0993559db
docs: add zerotier debugging commands
2025-07-03 16:25:10 +02:00
Qubasa
76bba13a7f
clan-app: Implement dynamic groups and array based filtering of logs and groups
2025-07-03 17:49:34 +07:00
hsjobeki
12c2c4ee89
Merge pull request 'inventory: fix missing default for instances.*.module' ( #4189 ) from fix-inventory into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4189
2025-07-03 10:13:57 +00:00
Johannes Kirschbauer
f8d36634ee
inventory: fix missing default for instances.*.module
2025-07-03 12:06:29 +02:00
Johannes Kirschbauer
b27ed51284
docs: update vpn setup instructions
2025-07-03 12:04:56 +02:00
Johannes Kirschbauer
a81701b59a
docs: fix wrong roles assignment syntax
2025-07-03 11:42:26 +02:00
lassulus
609db2f00c
Merge pull request 'refactor: remove deployment.json and use direct selectors' ( #4142 ) from lassulus/remove-deployment-json into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4142
2025-07-02 19:13:39 +00:00
lassulus
40065c7a00
refactor: remove deployment.json and use direct selectors
...
- Remove deployment.json file generation from outputs.nix
- Add throw for deprecated deployment.file usage with upgrade instructions
- Remove vars data from deployment.data
- Update Machine class to use direct select() calls instead of deployment property
- Update all deployment property accesses to use direct selectors
- Add precaching for frequently accessed values in update.py:
- Module paths for facts and vars
- Deployment settings (requireExplicitUpdate, nixosMobileWorkaround)
- Services and generators data
- Secret upload locations
- This removes unnecessary JSON serialization and makes the code more composable
2025-07-02 20:56:23 +02:00
hsjobeki
2e4cbdc7c8
Merge pull request 'machines/update: queue update only for machines_to_update' ( #4186 ) from cli-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4186
2025-07-02 17:16:12 +00:00
Johannes Kirschbauer
9aa7be3aba
machines/update: queue update only for machines_to_update
2025-07-02 19:05:37 +02:00
hsjobeki
b2e8b8bf59
Merge pull request 'clan.deployment: unify deprecated options' ( #4184 ) from cli-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4184
2025-07-02 16:48:19 +00:00
Johannes Kirschbauer
4c2bb0791d
clan.deployment: unify deprecated option
2025-07-02 18:37:29 +02:00
hsjobeki
5cc8f3b2b3
Merge pull request 'docs/secrets: setup move plugins section to the bottom. Normal users don't have that, smart people read from bottom up' ( #4185 ) from docs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4185
2025-07-02 16:32:31 +00:00
Johannes Kirschbauer
fb5dca567e
docs/secrets: setup move plugins section to the bottom. Normal users don't have that, smart people read from bottom up
2025-07-02 18:23:48 +02:00
Johannes Kirschbauer
97bdf49814
cli: fix listing maschines by their name
2025-07-02 18:18:48 +02:00
hsjobeki
b8feb652f6
Merge pull request 'docs/index: encourage non-linear flow' ( #4183 ) from docs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4183
2025-07-02 15:13:50 +00:00
Johannes Kirschbauer
58c9c929ba
docs/index: add progress tracker, encourage non-linear flow
2025-07-02 17:02:16 +02:00
Johannes Kirschbauer
58862215ab
docs: rephrase add machines for planned dynamic templates
2025-07-02 17:01:40 +02:00
Johannes Kirschbauer
667bbffb3f
docs: add emojis to getting-started
2025-07-02 17:00:51 +02:00
hsjobeki
31b1725f6f
Merge pull request 'docs: clarify project structure exploration in Getting Started' ( #4182 ) from docs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4182
2025-07-02 14:39:42 +00:00
Johannes Kirschbauer
0bd4074927
docs: clarify project structure exploration in Getting Started
2025-07-02 16:32:30 +02:00
hsjobeki
749a847d83
Merge pull request 'docs: remove step numbers' ( #4181 ) from docs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4181
2025-07-02 14:01:43 +00:00
Johannes Kirschbauer
faf6ac82eb
docs: remove api reference build command
2025-07-02 15:53:48 +02:00
Johannes Kirschbauer
6c7beb7aaa
docs: remove step numbers
...
Numerating steps is not informative and considered bad style
People tend to follow documentation non-linearly
leaving of at one point, starting over from the middle
Documentation should be written in a way that allow for that
2025-07-02 15:53:24 +02:00
Mic92
d7dcb55001
Merge pull request 'vars: make debug logging less verbose' ( #4171 ) from merge-when-green-joerg into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4171
2025-07-02 11:48:59 +00:00
Luis Hebendanz
d3d337a51e
Merge pull request 'clan-app: Init machine based API logging' ( #4133 ) from Qubasa/clan-core:improve_ui_logs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4133
2025-07-02 11:30:22 +00:00
Qubasa
2fd6426f28
clan-app: whitelist necessary any usage in api./index.tsx
2025-07-02 18:11:28 +07:00
Jörg Thalheim
f70f6d6d80
clan_lib/test_create: fix test when running outside of the sandbox...
2025-07-02 13:04:46 +02:00
Qubasa
b9a386c881
clan-cli: api.py add python header
2025-07-02 17:59:24 +07:00
Qubasa
db3e8b9984
clan-app: Add logging middleware
2025-07-02 17:59:05 +07:00
hsjobeki
117224e6a4
Merge pull request 'pytest: improve logging a bit' ( #4180 ) from pytest-logs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4180
2025-07-02 10:47:14 +00:00
Johannes Kirschbauer
ea77b48d83
pytest: improve logging a bit
2025-07-02 12:35:02 +02:00
Qubasa
5d99d0e1e7
clan-app: simplified task function, moved them to a separate file
2025-07-02 16:18:37 +07:00
Qubasa
1ec67ecfaf
webview-lib: Moved repo to gitea, updated revision. Removed set_icon
2025-07-02 16:16:37 +07:00
Qubasa
d5064ce465
clan-app: Add pygdb.sh for debugging crashes in webview-lib
2025-07-02 16:00:55 +07:00
Qubasa
9080e7c7f6
clan-app: Fix .local.env not being sourced
2025-07-02 16:00:34 +07:00
Qubasa
8e00363584
ui-2d: Fix build errors
2025-07-02 15:59:50 +07:00
hsjobeki
672db4a33f
Merge pull request 'clanServices: add flake level exports' ( #4172 ) from flake-exports into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4172
2025-07-02 08:42:07 +00:00
Johannes Kirschbauer
82c80a9a53
clan/exportsModule: add missing default
2025-07-02 10:32:56 +02:00
Johannes Kirschbauer
16116505ab
flake-exports: add options documentation
2025-07-02 10:22:09 +02:00
hsjobeki
80713f93af
Merge pull request 'Revert "Merge pull request 'Make state-version generation an clan option' ( #4056 ) from state-version-option into main"' ( #4176 ) from revert-state-version into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4176
2025-07-02 07:37:37 +00:00
Johannes Kirschbauer
b6f00ed1f6
test: enable unsafe teardown of tempDir
...
aarch64 libc or kernel might be stricter in keeping files locked while they're open.
This causes failed teardown of the tmpdir
2025-07-02 09:27:05 +02:00
renovate[bot]
d6646ecc62
chore(deps): update data-mesher digest to 246f0d6
2025-07-02 00:20:19 +00:00
renovate[bot]
fc1c64985f
chore(deps): update flake-parts digest to 7782624
2025-07-02 00:00:16 +00:00
Johannes Kirschbauer
695574988e
Revert "Merge pull request 'Make state-version generation an clan option' ( #4056 ) from state-version-option into main"
...
This reverts commit a101ff1f11 , reversing
changes made to f12b62d8b4 .
2025-07-01 18:15:11 +02:00
kenji
dc6648520f
Merge pull request 'docs(clan): Improve state-version documentation' ( #4174 ) from kenji/ke-state-version into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4174
2025-07-01 15:40:33 +00:00
Johannes Kirschbauer
454936336f
clanServices: add test to ensure nixosModule is imported
2025-07-01 17:35:04 +02:00
a-kenji
0093836272
docs(clan): Improve state-version documentation
2025-07-01 17:32:20 +02:00
hsjobeki
e026ada443
Merge pull request 'clanServices: remove recursive services' ( #4173 ) from revert-recursive-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4173
2025-07-01 15:11:57 +00:00
Johannes Kirschbauer
38bb2dfb56
clanServices: remove recursive services
...
Initially added in #3972 we've decided to remove them, because they are to complex to use correctly
2025-07-01 17:03:58 +02:00
Johannes Kirschbauer
d10fe7a8ee
clanServices: add flake level exports
2025-07-01 16:54:19 +02:00
Jörg Thalheim
83b2fbc276
vars: make debug logging less verbose
2025-07-01 15:04:03 +02:00
hsjobeki
29a2103aab
Merge pull request 'clanServices: clean up, add tests' ( #4157 ) from default-modules into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4157
2025-07-01 12:09:28 +00:00
hsjobeki
d858206fd2
Merge pull request 'Lib/flakes: remove self references' ( #4165 ) from fix-lib into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4165
2025-07-01 12:03:52 +00:00
Johannes Kirschbauer
c1bbd970d4
lib.clan: properly merge self attrs
2025-07-01 14:02:02 +02:00
Johannes Kirschbauer
5c7256e063
Lib/flakes: remove self references
2025-07-01 13:57:49 +02:00
Johannes Kirschbauer
8eb2ce1c40
tests: update buildClan args
2025-07-01 13:21:12 +02:00
Johannes Kirschbauer
93fc2e2238
modules/clan: inject .clan into self.inputs if self is an attribute set
2025-07-01 13:19:37 +02:00
Johannes Kirschbauer
a131c3cbbb
checks: mock self.inputs.self by default
2025-07-01 13:19:37 +02:00
Johannes Kirschbauer
15f3cd5547
clanServices: add tests for resolve modules
2025-07-01 13:19:37 +02:00
Johannes Kirschbauer
15c5d539fc
clanServices: remove unnecessary localModules
2025-07-01 13:19:37 +02:00
Johannes Kirschbauer
cf6fc744ab
clanServices: remove unneeded self reference in lib
2025-07-01 13:19:37 +02:00
hsjobeki
0de362af58
Merge pull request 'clan_lib/tests: add big fat warning comment to save peoples time' ( #4168 ) from test-1+ into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4168
2025-07-01 11:19:13 +00:00
Mic92
40d776b953
Merge pull request 'vars-check: replace slow python implementation with pure nix' ( #4144 ) from machine-class into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4144
2025-07-01 10:53:27 +00:00
Jörg Thalheim
0a4bdf2e83
vars-check: replace slow python implementation with pure nix
2025-07-01 12:46:50 +02:00
Johannes Kirschbauer
df3abbad40
clan_lib/tests: add big fat warning comment to save peoples time
2025-07-01 12:30:17 +02:00
hsjobeki
e954d80dc6
Merge pull request 'buildClan: replace all usages by lib.clan' ( #4167 ) from build-clan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4167
2025-07-01 10:19:07 +00:00
Johannes Kirschbauer
ae274d6b82
buildClan: replace all usages by lib.clan
2025-07-01 11:56:31 +02:00
kenji
f97385a9dc
Merge pull request 'checks/syncthing: Disable the syncthing check for now' ( #4160 ) from kenji/ke-syncthing-disable-check into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4160
2025-07-01 09:23:40 +00:00
renovate[bot]
46ee232958
chore(deps): update nix-darwin digest to e04a388
2025-06-30 21:30:17 +00:00
a-kenji
bc4c6ef40a
checks/syncthing: Disable the syncthing check for now
...
This particular check has been gotten quite slow over time,
as the upstream module has been updated.
This will be reintroduced in a more performant fashion, once the
`syncthing` module has been ported.
2025-06-30 17:47:31 +02:00
lassulus
64d22197c4
Merge pull request 'clanLib: remove select' ( #4158 ) from fix-lib into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4158
Reviewed-by: lassulus <clanlol@lassul.us >
2025-06-30 15:31:06 +00:00
brianmcgee
d2a4a5c2c4
Merge pull request 'feat(ui): use fake timer in tests and real timer in browser for storybook interaction tests' ( #4159 ) from feat/storybook-fake-timers into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4159
2025-06-30 14:50:31 +00:00
Brian McGee
96b5ca9de0
feat(ui): use fake timer in tests and real timer in browser for storybook interaction tests
...
I believe the time-based tests are falsely failing when the CI machine is under high load. This also speeds up the tests in CI.
I'm not 100% happy with the approach, but this should resolve CI issues in the short term until I can improve things.
2025-06-30 15:19:57 +01:00
hsjobeki
847f8363f3
Merge pull request 'Docs: getting started add services' ( #4156 ) from doc into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4156
2025-06-30 14:16:00 +00:00
Johannes Kirschbauer
2ebeb2e205
clanLib: remove select
2025-06-30 16:14:01 +02:00
Johannes Kirschbauer
22778b1864
Docs: getting started add services
2025-06-30 15:14:47 +02:00
DavHau
8c323e25aa
Merge pull request 'checks: introduce check.<system> for faster local checks' ( #4155 ) from dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4155
2025-06-30 13:08:33 +00:00
DavHau
f02e2ce383
checks: introduce check.<system> for faster local checks
...
We haven many VM tests which are quite slow, therefore q local `nix flake check` doesn't make sense anymore in most cases.
This introduces a set of cheaper local tests to be run via:
```
nix run .#check.x86_64-linux -L
```
2025-06-30 19:55:25 +07:00
DavHau
1ab9eb733c
checks: fix some tests not named correctly
2025-06-30 19:50:16 +07:00
DavHau
882ccbc4b8
checks: prefix all nixos tests with nixos-test-
2025-06-30 19:14:24 +07:00
DavHau
b448ff05e2
checks: rename dummy-inventory-test -> service-dummy-test
2025-06-30 19:06:13 +07:00
DavHau
ee5fa8fe74
checks: rename attributes for better discoverability
...
- all eval checks prefixed with `eval-`
- all service checks prefixed with `service-`
2025-06-30 19:04:21 +07:00
hsjobeki
5f7c55c93f
Merge pull request 'docs: move deployment docs from add machine to deploy' ( #4153 ) from doc into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4153
2025-06-30 11:50:35 +00:00
DavHau
8de7a9f040
services: improve error when module not found
2025-06-30 11:44:30 +00:00
DavHau
a101ff1f11
Merge pull request 'Make state-version generation an clan option' ( #4056 ) from state-version-option into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4056
2025-06-30 11:24:42 +00:00
Johannes Kirschbauer
4f55af9026
Docs: rename installer to usb installer
2025-06-30 13:03:07 +02:00
Johannes Kirschbauer
2fbfda504a
docs: move deployment docs from add machine to deploy
2025-06-30 13:02:57 +02:00
Johannes Kirschbauer
642b300ce8
docs: mark getting-started/flash installer as optional"
2025-06-30 13:02:46 +02:00
pinpox
9e7e0378a8
Remove state-version module from tests
2025-06-30 12:58:05 +02:00
pinpox
47d4dfad1b
Add state-version option
2025-06-30 12:54:29 +02:00
pinpox
77bc1c75dd
Remove state-version module and service
2025-06-30 12:54:29 +02:00
DavHau
f12b62d8b4
docs: explain about simplified way of specifying instances
2025-06-30 10:27:37 +00:00
pinpox
66a5fc988e
Merge pull request 'Add example for users service' ( #4150 ) from doc-users into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4150
2025-06-30 10:25:51 +00:00
DavHau
abdc8913f3
Merge pull request 'clan services: use clan-core as a default source for services' ( #4147 ) from davhau/dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4147
2025-06-30 10:13:46 +00:00
DavHau
e0b2d15361
tests: explicitly specify services to be sourced from self
...
See previous commit
2025-06-30 10:13:46 +00:00
DavHau
50cce90527
clan services: use service modules from clan-core by default
...
Users will use clan-core services first before making their own. Therefore this is a better default. Also it allow us to simplify rendering of our docs
2025-06-30 10:13:46 +00:00
pinpox
1d25458390
Add example
2025-06-30 12:09:29 +02:00
renovate[bot]
ae2b9313bd
chore(deps): update nix-darwin digest to 425c929
2025-06-30 09:00:18 +00:00
renovate[bot]
eb2e7db202
chore(deps): update data-mesher digest to 97d8e88
2025-06-30 00:20:20 +00:00
Mic92
f7a7c8df85
Merge pull request 'Fix darwin support again' ( #4143 ) from machine-class into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4143
2025-06-29 22:08:52 +00:00
Jörg Thalheim
f1fd710dd1
add regression test for macOS evaluation
2025-06-29 23:58:19 +02:00
Jörg Thalheim
622597e70f
overridePkgs: drop unneeded parantheses
2025-06-29 23:58:19 +02:00
Jörg Thalheim
b415e063f1
darwinConfigurations/darwinModules: export with right _file attributes
2025-06-29 23:58:19 +02:00
Jörg Thalheim
43b205624d
no longer fallback to "nixos" machineClass
...
we should always have a value defined.
2025-06-29 23:58:19 +02:00
lassulus
acf673216b
Merge pull request 'refactor: replace eval_nix/build_nix with machine.select()' ( #4139 ) from lassulus/refactor-machine-select-clean into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4139
2025-06-29 16:57:27 +00:00
lassulus
286c75a142
refactor: replace eval_nix/build_nix with machine.select()
...
- Remove nix(), eval_nix(), and build_nix() methods from Machine class
- Add select() method that handles machine-specific attribute prefixes
- Update all usages to use machine.select() directly
- Handle Path conversion and tmp_store logic at call sites
- This simplifies the Machine API and prepares for deployment.json removal
2025-06-29 17:00:27 +02:00
Luis Hebendanz
b51dddaffc
Merge pull request 'revert_templates' ( #4132 ) from Qubasa/clan-core:revert_templates into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4132
2025-06-28 15:55:45 +00:00
Qubasa
d542c87639
Revert "add flakeparts to template test"
...
This reverts commit c2d0a19ed4 .
2025-06-28 22:43:34 +07:00
Qubasa
3cb250d5a4
Revert "Update new-clan template"
...
This reverts commit c2d8cdf7f1 .
2025-06-28 22:42:46 +07:00
Qubasa
3a772a5f56
Revert "Cleanup templates"
...
This reverts commit a3a81a959a .
2025-06-28 22:42:39 +07:00
Qubasa
277ef4f946
Revert "templates/minimal: consistent input names"
...
This reverts commit c847766f9e .
2025-06-28 22:42:20 +07:00
Qubasa
99d3e4ec11
Revert "tests/create_clan: bring back read,write checks"
...
This reverts commit 7f6684998b .
2025-06-28 22:42:11 +07:00
Qubasa
46bc5b519a
Revert "templates/minimal: reuse flake-parts from clan-core"
...
This reverts commit 03b5c6de02 .
2025-06-28 22:41:45 +07:00
Qubasa
b14357a4e0
Revert "templates: fix tests"
...
This reverts commit 7ce29938e9 .
2025-06-28 22:41:31 +07:00
Qubasa
ba19aa8810
Revert "templates: remove .clan-flake"
...
This reverts commit bf377bd4e0 .
2025-06-28 22:40:55 +07:00
Mic92
59dc49f606
Merge pull request 'drop more dependencies from pytest' ( #4131 ) from speed-up-vars-check into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4131
2025-06-28 07:42:01 +00:00
Jörg Thalheim
2a4e11407b
drop more dependencies from pytest
2025-06-28 09:27:34 +02:00
Mic92
24fcc9a647
Merge pull request 'don't keep appending --impure to nix_options when running tests' ( #4128 ) from speed-up-flake-select into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4128
2025-06-28 07:26:16 +00:00
Jörg Thalheim
d7fffa68d5
consolidate clan-lib/clan-cli pytest into one test derivation
...
Than we can re-use test pytest worker better and it's less complex.
2025-06-28 09:11:14 +02:00
Jörg Thalheim
6f29745ab4
drop virtviwer from testRuntimeDependencies
2025-06-28 09:11:14 +02:00
Jörg Thalheim
f28b5a4760
generate-test-vars: fix entrypoint
2025-06-28 08:50:41 +02:00
Jörg Thalheim
43df2c9a14
fix unlocked flake.lock in tests
2025-06-28 08:50:41 +02:00
hsjobeki
8122158da7
Merge pull request 'machines/create: fix handle defaults' ( #4129 ) from update-templates-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4129
2025-06-27 18:59:39 +00:00
Johannes Kirschbauer
2b0d7e345f
machines/create: fix handle defaults
2025-06-27 20:28:11 +02:00
Jörg Thalheim
65ee951b72
select: drop unused --impure flag
2025-06-27 19:30:45 +02:00
Jörg Thalheim
b251275063
select: use nix_options copy
2025-06-27 19:30:45 +02:00
Jörg Thalheim
6afe4305b4
select: drop unused nixpkgs fallback
2025-06-27 19:30:45 +02:00
hsjobeki
8a7daddad4
Merge pull request 'Update clan templates' ( #4099 ) from update-templates-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4099
2025-06-27 17:25:22 +00:00
Johannes Kirschbauer
bf377bd4e0
templates: remove .clan-flake
2025-06-27 19:14:21 +02:00
Johannes Kirschbauer
7ce29938e9
templates: fix tests
2025-06-27 19:14:21 +02:00
Mic92
7d6f12fb57
Merge pull request 'pkgs/clan: Fix clan ssh subcommand' ( #4124 ) from mic92/kenji/ke-fix-ssh-deploy into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4124
2025-06-27 16:57:07 +00:00
Jörg Thalheim
553d13b05a
don't keep appending --impure to nix_options when running tests
2025-06-27 18:54:13 +02:00
Mic92
8722f2fa52
Merge pull request 'Add restricted network nixos modules' ( #4125 ) from speed-up-flake-select into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4125
2025-06-27 16:52:51 +00:00
Jörg Thalheim
6ab5171b5b
add restricted network nixos modules
...
See README.md for explanation
2025-06-27 18:44:17 +02:00
Jörg Thalheim
e152740017
container-test-driver: implement wait_for_open_port
2025-06-27 18:35:55 +02:00
Jörg Thalheim
bc3ba8eeff
markdown: ignore trailing whitespace
2025-06-27 16:26:39 +02:00
Johannes Kirschbauer
03b5c6de02
templates/minimal: reuse flake-parts from clan-core
2025-06-27 16:11:37 +02:00
a-kenji
6a911c97a3
pkgs/clan: Fix clan ssh subcommand
2025-06-27 15:39:38 +02:00
Mic92
5d5bb32970
Merge pull request 'select: disable remote building and substitution' ( #4123 ) from speed-up-flake-select into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4123
2025-06-27 12:00:18 +00:00
Jörg Thalheim
3035752d00
select: disable remote building and substitution
...
this should make things faster since the derivation itself is trivial.
2025-06-27 13:37:16 +02:00
kenji
0799c72095
Merge pull request 'modules/zerotier: Fix typo in documentation' ( #4121 ) from kenji/ke-fix-zerotier-typo into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4121
2025-06-27 11:24:28 +00:00
kenji
b5ef05f9ad
Merge pull request 'modules/users: Fix the password deployment' ( #4113 ) from kenji/ke-fix-user-password-service into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4113
2025-06-27 11:20:59 +00:00
kenji
a624cb34ee
Merge pull request 'pkgs/clan: Add machine validator with suggestion logic' ( #4112 ) from ke-machines-update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4112
2025-06-27 11:09:05 +00:00
a-kenji
c0d4db6a8d
modules/zerotier: Fix typo in documentation
2025-06-27 12:58:59 +02:00
kenji
a88f3e21a6
Merge pull request 'pkgs/clan: Improve error message on clan secrets users add' ( #4095 ) from kenji/ke-clan-age-key-error into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4095
Reviewed-by: brianmcgee <brian@bmcgee.ie >
2025-06-27 10:52:16 +00:00
a-kenji
e248b1f551
modules/users: Fix the password deployment
...
The password needs to be available prior to logging in,
this is why we need to set `neededFor = users`.
2025-06-27 12:48:15 +02:00
kenji
89e8673e82
Merge pull request 'lib/test/sops: Fix secret deployment for test machines' ( #4120 ) from kenji/ke-fix-sops-test-integration into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4120
2025-06-27 10:45:41 +00:00
a-kenji
3e70e30b6b
pkgs/clan: Add machine validator with suggestion logic
...
Add machine validator with suggestion logic to:
- `clan machines update`
- `clan machines delete`
- `clan machines update-hardware-config`
2025-06-27 12:32:36 +02:00
a-kenji
0a56f60005
lib/test/sops: Fix secret deployment for test machines
...
Fix secret deployment for test machines in our NixOS vm and container
tests.
We filter now if we really need to deploy a certain set of files as a
deployment script, which alleviates us running into these edgecases:
```
error: The option `nodes.server.system.activationScripts.setupSecrets.text'
was accessed but has no value defined. Try setting the option.
```
2025-06-27 12:19:46 +02:00
Johannes Kirschbauer
7f6684998b
tests/create_clan: bring back read,write checks
2025-06-27 11:04:31 +02:00
Johannes Kirschbauer
c847766f9e
templates/minimal: consistent input names
2025-06-27 11:04:31 +02:00
pinpox
c2d0a19ed4
add flakeparts to template test
2025-06-27 11:04:31 +02:00
pinpox
a3a81a959a
Cleanup templates
2025-06-27 10:39:59 +02:00
pinpox
c2d8cdf7f1
Update new-clan template
2025-06-27 10:39:59 +02:00
hsjobeki
9de5b97802
Merge pull request 'modules/clan: consistent logic for auto injecting nixpkgs, nix-darwin' ( #4117 ) from hsjobeki/fix-clan.nix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4117
2025-06-27 08:35:01 +00:00
Johannes Kirschbauer
8789ebeb59
modules/clan: consistent logic for auto injecting nixpkgs, nix-darwin
...
We want to make them options this is a temporary fix
2025-06-27 10:23:53 +02:00
hsjobeki
6f1a5286db
Merge pull request 'Fix(clan-module): pass clan-core not a module' ( #4116 ) from hsjobeki/fix-clan.nix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4116
2025-06-27 08:21:44 +00:00
Johannes Kirschbauer
7372063579
Fix(clan-module): pass clan-core not a module
2025-06-27 10:13:58 +02:00
hsjobeki
c3c9a8d082
Merge pull request 'modules: add explizit class to clan module' ( #4115 ) from hsjobeki/buildClan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4115
2025-06-27 08:13:54 +00:00
Johannes Kirschbauer
d011b1ab02
docs: rename all references from 'buildClan' to 'lib.clan'
2025-06-27 09:54:23 +02:00
Johannes Kirschbauer
b34e5b30e5
modules: add explizit class to clan module
2025-06-27 09:53:40 +02:00
hsjobeki
b1376f2669
Merge pull request 'buildClan: deprecate in favor of 'clan'' ( #4111 ) from hsjobeki/buildClan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4111
2025-06-27 07:29:32 +00:00
Johannes Kirschbauer
79ec0f07eb
modules: fix consistent nixpkgs and nix-darwin injection
2025-06-27 09:21:19 +02:00
Johannes Kirschbauer
7833a56723
modules.nixosVmTest: rename to nixosTest to match the target module _class
2025-06-26 17:37:42 +02:00
Johannes Kirschbauer
50f6b4a095
modules.clan.default: move specialArgs into common place
2025-06-26 17:37:42 +02:00
Johannes Kirschbauer
e195a77476
buildClan: deprecate in favor of 'clan'
...
clan.lib.clan { <your definition> } returns an eval result
In contrast to buildClan which returns the .config
This allows for better introspection
2025-06-26 17:08:47 +02:00
Johannes Kirschbauer
0271af0dcb
modules: move clan module to flake.modules.clan.default
2025-06-26 17:08:47 +02:00
Johannes Kirschbauer
cfce6d9845
flake-parts: enable modules feature
2025-06-26 17:08:47 +02:00
hsjobeki
6929700c77
Merge pull request 'chore: clean up logic around clanInternals' ( #4110 ) from hsjobeki/buildClan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4110
2025-06-26 14:21:59 +00:00
Johannes Kirschbauer
7d755d04b5
chore: clean up logic around clanInternals
2025-06-26 16:12:35 +02:00
pinpox
4f8421def0
Merge pull request 'Fix machine-id on macos' ( #4109 ) from fix-mac-machine-id into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4109
2025-06-26 13:57:19 +00:00
hsjobeki
0cabce6e5f
Merge pull request 'chore: buildClan warn access without .config prefix' ( #4108 ) from hsjobeki/buildClan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4108
2025-06-26 13:39:39 +00:00
pinpox
264b010a89
Fix machine-id on macos
2025-06-26 15:35:34 +02:00
hsjobeki
28147fb5d5
Merge pull request 'refactor: unify evalClanService with evalService' ( #4106 ) from hsjobeki/eval service into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4106
2025-06-26 13:22:03 +00:00
Johannes Kirschbauer
a95d39923e
chore: buildClan warn access without .config prefix
...
Makes behavior consistent with nixosSystem, nixpkgs.
Alows access to options and other eval modules results
Needed for error tracking and better devx
2025-06-26 15:21:49 +02:00
Johannes Kirschbauer
acaf44e2c5
chore: remove spurious class
2025-06-26 15:20:18 +02:00
Johannes Kirschbauer
e77769bd20
refactor: clanLib buildClan
2025-06-26 15:20:05 +02:00
Johannes Kirschbauer
11a94893fb
refactor: unify evalClanService with evalService
2025-06-26 14:50:35 +02:00
hsjobeki
c079d6b65f
Merge pull request 'refactor: simplify buildClan remove any filtering' ( #4105 ) from hsjobeki/buildClan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4105
2025-06-26 12:04:37 +00:00
Johannes Kirschbauer
1568950410
refactor: simplify buildClan remove any filtering
2025-06-26 13:56:14 +02:00
hsjobeki
5ae6636126
Merge pull request 'refactor: clan expose the clan module as is' ( #4101 ) from hsjobeki/clan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4101
2025-06-26 11:44:24 +00:00
Johannes Kirschbauer
6c460db016
schema: update clan option source
2025-06-26 13:24:34 +02:00
renovate[bot]
47b338f539
Update data-mesher digest to 32b1ff6
2025-06-26 10:50:17 +00:00
renovate[bot]
f314fbb1b9
Update treefmt-nix digest to ac8e6f3
2025-06-26 10:30:17 +00:00
Johannes Kirschbauer
9196de993d
feat(darwinModules): add module location analog to flake-parts
2025-06-26 11:55:55 +02:00
Johannes Kirschbauer
fcd2124936
refactor: clan expose the clan module as is
2025-06-26 11:47:53 +02:00
hsjobeki
06711a09c5
Merge pull request 'inventory.json: remove all services from local inventory' ( #4100 ) from clan-unify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4100
2025-06-26 09:45:04 +00:00
Johannes Kirschbauer
2f5793a2bc
inventory.json: remove all services from local inventory
2025-06-26 11:28:33 +02:00
hsjobeki
76e8cf10cb
Merge pull request 'Refactor(build-inventory): remove build-inventory in favor of simple and expressive evalModules' ( #4097 ) from clan-unify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4097
2025-06-26 09:27:55 +00:00
Johannes Kirschbauer
a01ece8742
Refactor(build-inventory): remove build-inventory in favor of simple and expressive evalModules
2025-06-26 11:11:50 +02:00
pinpox
a37bdd9fac
Merge pull request 'Add deprecation warnings to all clanModules' ( #4098 ) from all-deprecations into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4098
2025-06-26 08:43:55 +00:00
pinpox
0b459f64e6
Add deprecation warnings to all clanModules
2025-06-26 10:35:47 +02:00
renovate[bot]
e09deaf42c
Update disko digest to 83c4da2
2025-06-26 02:50:17 +00:00
hsjobeki
4ea7a10a79
Merge pull request 'importer: Fix the documentation for the importer service' ( #4062 ) from kenji/importer: Fix the documentation for the importer service into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4062
Reviewed-by: hsjobeki <hsjobeki@gmail.com >
2025-06-25 16:30:04 +00:00
hsjobeki
1955a8171e
Merge pull request 'build-inventory: refactor into seperate folders and explizit submodule' ( #4094 ) from clan-unify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4094
2025-06-25 16:23:58 +00:00
Johannes Kirschbauer
0bb5ed923e
build-inventory: fix tests temporarily
2025-06-25 18:15:47 +02:00
Johannes Kirschbauer
c91b5fb3db
build-inventory: move inventory and inventoryClass into explizitly different folders
2025-06-25 17:55:45 +02:00
a-kenji
6188583885
pkgs/clan: Improve error message on clan secrets users add
...
Improve error message on `clan secrets users add [user] --age-key
`AGE-PLUGIN-YUBIKEY`
Since there is no way to get the recipient through the AGE-PLUGIN-YUBIKEY,
we should fail fast and give an actionable error to the user.
2025-06-25 17:30:59 +02:00
Johannes Kirschbauer
68ed393c87
build-inventory: replace by equivalent submodule
2025-06-25 17:23:46 +02:00
hsjobeki
af27f43491
Merge pull request 'inventory/interface: reduce apply arguments chain by adding options' ( #4092 ) from clan-unify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4092
2025-06-25 14:41:55 +00:00
Johannes Kirschbauer
16392622c5
Chore: add _file for internals error tracing
2025-06-25 15:47:18 +02:00
Johannes Kirschbauer
1819243123
inventory/interface: reduce apply arguments chain by adding it to _module.args
2025-06-25 15:15:22 +02:00
kenji
4204381edc
Merge pull request 'pkgs/agit: Pre-fill the editor with commit messages' ( #4083 ) from kenji/pkgs/agit: Pre-fill the editor with commit messages into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4083
2025-06-25 10:52:22 +00:00
kenji
4e35ab2e47
Merge pull request 'pkgs/agit: Autofill AGit topic based on the current branch name' ( #4091 ) from kenji/ke-topic-name-from-branch into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4091
2025-06-25 10:47:44 +00:00
a-kenji
332f844ec6
pkgs/agit: Autofill AGit topic based on the current branch name
...
This makes it more likely that AGit topics are compatible with git
commands.
2025-06-25 12:32:32 +02:00
hsjobeki
a4bcaa8854
Merge pull request 'build-clan: always use a single entry point' ( #4089 ) from clan-unify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4089
2025-06-25 10:28:50 +00:00
Johannes Kirschbauer
d0ae75e5cc
build-clan: export default.nix that injects clanLib
...
This should be the single entry point, that includes clanLib
instead of importApply propagation
2025-06-25 12:07:59 +02:00
kenji
ed7162635b
Merge pull request 'pkgs/clan-cli: Fix typo in sshd test' ( #4088 ) from kenji/pkgs/clan-cli: Fix typo in sshd test into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4088
2025-06-25 10:00:06 +00:00
Johannes Kirschbauer
aa96a11369
build-clan: move clan attribute relates modules into subfolder
2025-06-25 10:55:37 +02:00
hsjobeki
3e030a5199
Merge pull request 'build-clan: move clan attribute relates modules into subfolder' ( #4063 ) from clan-unify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4063
2025-06-25 08:46:18 +00:00
a-kenji
b14a15407c
pkgs/clan-cli: Fix typo in sshd test
2025-06-25 10:13:06 +02:00
DavHau
d1163bc2c5
Merge pull request 'docs: add clan options search page' ( #4077 ) from davhau/docs: add clan options search page into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4077
2025-06-25 06:56:55 +00:00
DavHau
75ce3fcb84
nuschtos: fix flake dependencies crashing tests
2025-06-25 13:48:50 +07:00
DavHau
9299c83822
bring back services rendering for docs
...
Setting services to visible = false breaks stuff
2025-06-25 13:48:50 +07:00
DavHau
2b73671f18
docs/devshell: unbreak - add options-page
...
Create the options-page subpage when the docs dev shell is loaded.
Also simplify the dev shell definition by just utilizing what's in configurePhase of the docs derivation
2025-06-25 13:48:50 +07:00
DavHau
4421ce006e
docs: add clan options search page
...
This provides a simpler and more intuitive search over a flat list of possible options.
Styling still to be improved
2025-06-25 12:55:25 +07:00
DavHau
ae1a139818
nix_modules: generate clan.py in top-level shell
...
Generally I don't think dev shells are the right place to trigger generation of files.
This should be part of the formatter and pre-commit hook
@hsjobeki
2025-06-25 12:33:36 +07:00
a-kenji
c6dce03c58
pkgs/agit: Pre-fill the editor with commit messages
...
Pre-fill the editor with commit messages for the AGit PR.
2025-06-25 01:56:46 +02:00
Luis Hebendanz
b1dcef4862
Merge pull request 'clan-app: Add a 'group' to log_manager. Move log_manager to own subdirectory' ( #4081 ) from Qubasa/clan-core:improve_ui_logs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4081
2025-06-24 19:53:09 +00:00
Qubasa
6558a915ad
clan-app: Add a 'group' to log_manager. Move log_manager to own subdirectory
2025-06-24 21:42:18 +02:00
kenji
92918719e9
Merge pull request 'pkgs/agit: Document agit PR fetching' ( #4080 ) from kenji/pkgs/agit: Document agit PR fetching into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4080
2025-06-24 17:21:34 +00:00
Luis Hebendanz
81b87a6437
Merge pull request 'clan-lib: Move nix_options from Machine class to Flake class' ( #4048 ) from Qubasa/clan-core:move_nix_options into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4048
Reviewed-by: lassulus <clanlol@lassul.us >
2025-06-24 17:19:16 +00:00
kenji
96cf48a8a8
Merge pull request 'pkgs/agit: Add proper closing message for aborting an AGit PR' ( #4076 ) from kenji/pkgs/agit: Add proper closing message for aborting an AGit PR into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4076
2025-06-24 17:18:00 +00:00
a-kenji
6831dc9f72
pkgs/agit: Document agit PR fetching
2025-06-24 19:13:04 +02:00
Qubasa
60d2837ddd
clan-cli: Remove unecessary nix_options args from functions
2025-06-24 19:07:41 +02:00
Qubasa
1bec31b371
generate-test-vars: Fix wrong Flake function invocations
2025-06-24 19:03:20 +02:00
Qubasa
5c6c848dea
formatter.iix: Add generate-test-vars to be typechecked
2025-06-24 19:03:20 +02:00
Qubasa
d14a5d34fd
clan-lib: Move nix_options from Machine class to Flake class
2025-06-24 19:03:20 +02:00
Luis Hebendanz
d3d2cb8723
Merge pull request 'Move update.py to clan_lib/machines part 4' ( #4073 ) from Qubasa/clan-core:move_to_clan_lib6 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4073
2025-06-24 14:52:10 +00:00
Luis Hebendanz
e6a7efafcf
Merge pull request 'Move delete.py to clan_lib/machines part 3' ( #4069 ) from Qubasa/clan-core:move_to_clan_lib5 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4069
2025-06-24 14:51:19 +00:00
Luis Hebendanz
ef5a4ab122
Merge pull request 'Move list.py to clan_lib/machines part 2' ( #4068 ) from Qubasa/clan-core:move_to_clan_lib4 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4068
2025-06-24 14:51:06 +00:00
a-kenji
c8e6a6c6b8
pkgs/agit: Add proper closing message for aborting an AGit PR
...
Add a proper closing message for aborting an AGit PR.
Also add documentation directly to the comments of the COMMIT_EDITMSG.
2025-06-24 16:47:10 +02:00
renovate[bot]
bbebf67eb0
Update dependency vite to v7
2025-06-24 13:10:33 +00:00
pinpox
724aa17faa
Merge pull request 'Make machine ID a option' ( #4013 ) from machine-id-option into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4013
2025-06-24 12:13:22 +00:00
Johannes Kirschbauer
9fcbb6d688
build-clan: move clan attribute relates modules into subfolder
2025-06-24 13:13:59 +02:00
pinpox
b53975684e
Merge branch 'main' into machine-id-option
2025-06-24 11:12:24 +00:00
kenji
a1b1f3e9de
Merge pull request 'pkgs/agit: Add all commits since main to edit comment' ( #4071 ) from kenji/pkgs/agit: Add all commits since main to edit comment into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4071
2025-06-24 11:01:15 +00:00
a-kenji
d4a4f61f74
pkgs/agit: Add all commits since main to edit comment
...
This is a first step for adding all the commits to the `agit c` and
prefilling it.
2025-06-24 12:18:15 +02:00
Qubasa
e79b926566
clan-cli: Move update.py to clan_lib/machines
2025-06-24 12:17:21 +02:00
Qubasa
d85277a077
clan-vm-manager: Fix list_machines import
2025-06-24 12:16:38 +02:00
Qubasa
29a5fbed53
clan-cli: Move delete.py to clan_lib/machines
2025-06-24 12:16:38 +02:00
Qubasa
e53a490edc
clan-cli: Move list.py to clan_lib/machines
2025-06-24 12:16:38 +02:00
Qubasa
48ea1c757f
clan-cli: Move morph.py to clan_lib/machines
2025-06-24 12:16:38 +02:00
renovate[bot]
f81c2254e1
Update dependency tailwindcss to v4
2025-06-24 10:10:27 +00:00
DavHau
03fe06285b
inventory interface: add description for module.name
2025-06-24 10:09:05 +00:00
pinpox
b476eb2f92
Merge branch 'main' into machine-id-option
2025-06-24 10:08:04 +00:00
Qubasa
ae73428ba5
clan-vm-manager: Fix list_machines import
2025-06-24 12:03:56 +02:00
Qubasa
ca17fb0ee8
clan-cli: Move list.py to clan_lib/machines
2025-06-24 11:57:02 +02:00
kenji
f288b8c1ef
Merge pull request 'pkgs/clan: Add --tags support to clan machines update' ( #4061 ) from kenji/pkgs/clan: Add --tags support to clan machines update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4061
2025-06-24 09:43:35 +00:00
pinpox
62199e5ec9
Merge branch 'main' into machine-id-option
2025-06-24 09:41:42 +00:00
Qubasa
add15a1a3e
clan-cli: Move delete.py to clan_lib/machines
2025-06-24 11:37:21 +02:00
Qubasa
5a14bd3993
clan-cli: Move list.py to clan_lib/machines
2025-06-24 11:32:42 +02:00
Qubasa
eb26ccaed0
clan-cli: Move morph.py to clan_lib/machines
2025-06-24 11:24:38 +02:00
Luis Hebendanz
1b6a3ba335
Merge pull request 'clan-cli: Move hardware.py to clan_lib/machines part2' ( #4066 ) from Qubasa/clan-core:move_to_clan_lib2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4066
2025-06-24 09:19:41 +00:00
Luis Hebendanz
18d45da9d6
Merge pull request 'clan-cli: Add missining propagation of host-key-check in machines.update' ( #4053 ) from Qubasa/clan-core:fix_host_key_check_in_update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4053
2025-06-24 09:10:30 +00:00
Qubasa
b26aad3619
clan-cli: Move hardware.py to clan_lib/machines
2025-06-24 11:07:37 +02:00
pinpox
cb69eea68f
Make machine ID a option
2025-06-24 10:42:03 +02:00
Qubasa
7eb90acfc4
clan-cli: Add missining propagation of host-key-check in machines.update
2025-06-24 10:35:53 +02:00
brianmcgee
26a2b45c74
Merge pull request 'add Tag and TagGroup components' ( #4038 ) from ui/tags into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4038
2025-06-24 08:30:06 +00:00
a-kenji
5b04cfc06a
pkgs/clan: Add --tags support to clan machines update
2025-06-23 23:51:43 +02:00
a-kenji
e0b7b3329a
importer: Fix the documentation for the importer service
2025-06-23 23:27:37 +02:00
hsjobeki
afc001cc54
Merge pull request 'pkgs/clan-cli: Remove confusing note from the CLI help' ( #4045 ) from kenji/pkgs/clan-cli: Remove confusing note from the CLI help into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4045
2025-06-23 14:22:28 +00:00
hsjobeki
a6f94987f9
Merge pull request 'Feat(inventory): simplify instance module spec, by applying a default' ( #4054 ) from hsjobeki/module-default into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4054
2025-06-23 14:21:55 +00:00
hsjobeki
f0d8974d03
Merge pull request 'Refactor(build-clan): rename to lib/modules' ( #4055 ) from clan-unify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4055
2025-06-23 14:16:54 +00:00
Johannes Kirschbauer
5dc80e43cd
Chore(classes): update classes
2025-06-23 16:11:12 +02:00
Johannes Kirschbauer
247eb46b5e
Refactor(build-clan): rename to lib/modules
...
This is a preparation for moving everything into clan, to make it all one module evaluation
2025-06-23 16:06:49 +02:00
Luis Hebendanz
fa843569c7
Merge pull request 'Simplify parse_deployment_address function' ( #4052 ) from Qubasa/clan-core:simplify_parse_deployment_address into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4052
2025-06-23 13:51:37 +00:00
Johannes Kirschbauer
c37651f2fe
Feat(inventory): simplify instance module spec, by applying a default
2025-06-23 15:46:52 +02:00
Qubasa
046d13bd50
clan-lib: Rename parse_deployment_address to parse_ssh_uri
2025-06-23 15:32:35 +02:00
Qubasa
c3a631de7e
clan-lib: Remove override args from parse_deployment_address, instead use the Remote.override method where necessary
2025-06-23 15:28:22 +02:00
Luis Hebendanz
b3c04ccd53
Merge pull request 'Simplify handling of HostKeyCheck' ( #4051 ) from Qubasa/clan-core:make_host_key_check_literal into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4051
2025-06-23 13:22:23 +00:00
Qubasa
217f55adec
clan-cli: Simplify HostKeyCheck to a Literal instead of an Enum
2025-06-23 15:08:44 +02:00
Qubasa
c4b3b26fa6
clan-cli: Move clan_cli/ssh/host_key.py to clan_lib/ssh
2025-06-23 15:07:18 +02:00
Luis Hebendanz
f1b886f04c
Merge pull request 'clan-lib: Rename check_machine_online to can_ssh_login. Move to Remote object' ( #4050 ) from Qubasa/clan-core:fix_check_online_machine into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4050
2025-06-23 12:32:39 +00:00
Qubasa
c65bd82e98
clan-lib: Rename check_machine_online to can_ssh_login. Move to Remote object
2025-06-23 14:21:51 +02:00
renovate[bot]
c4ce1e7962
chore(deps): update disko digest to 8fd2d6c
2025-06-23 12:10:18 +00:00
a-kenji
6ff64f7e0a
pkgs/clan-cli: Remove confusing note from the CLI help
...
Remove a now obsolete and thus confusing note from the help output
of `clan show`.
2025-06-23 08:57:43 +02:00
renovate[bot]
df5de44ba3
chore(deps): update data-mesher digest to f072536
2025-06-23 00:20:19 +00:00
renovate[bot]
9f93ad59e9
chore(deps): update nix-darwin digest to 04a3412
2025-06-22 19:20:17 +00:00
hsjobeki
1e0860df22
Merge pull request 'feat(clan-services): enable recursive services' ( #3972 ) from hsjobeki/nested-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3972
2025-06-20 12:51:27 +00:00
Johannes Kirschbauer
8bb28b7ba7
Fix(clan-services): allMachines might not contain the machineName
2025-06-20 14:41:17 +02:00
Brian McGee
36e2f25b57
feat(ui): add TagGroup component
...
Introduces a new `TagGroup` component for rendering grouped tags with optional inverted styling.
2025-06-20 12:22:59 +01:00
Brian McGee
2ed5d29c89
feat(ui): add Tag component
...
Adds a reusable `Tag` component with support for default and inverted styles. Also includes cleanup of unused dependencies in `package.json`.
2025-06-20 12:22:58 +01:00
renovate[bot]
b50fc9d6aa
chore(deps): update nixos-facter-modules digest to 14df13c
2025-06-20 10:20:16 +00:00
pinpox
2138db856e
Merge pull request 'fix: use custom git config in impure-checks to avoid system dependency' ( #4037 ) from fix-impure-checks-git-config into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4037
2025-06-20 09:32:10 +00:00
pinpox
f308ef7e8d
fix: use custom git config in impure-checks to avoid system dependency
2025-06-20 10:40:32 +02:00
Brian McGee
4586b0d17d
feat(ui): rename TagStatus to MachineStatus
...
Standardizes naming and updates related props, classes, and types for clarity and consistency.
2025-06-20 09:13:55 +01:00
brianmcgee
430f2562c0
Merge pull request 'feat(ui): consolidate and simplify how we use colors' ( #4035 ) from ui/color-and-css-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4035
2025-06-20 07:49:40 +00:00
Brian McGee
519b24ba0f
feat(ui): consolidate and simplify how we use colors
...
* reconciles latest color variables from Figma
* defines the primary colors and the color system in tailwind config.
* refines how we generate utilities within the color system for `bg`, `fg` and `border`.
* removes custom box shadows, instead leaning on direct definition in CSS and `theme()`.
This change removes duplicate color information being defined as CSS variables in `index.css`
and co-locates all style information with the component
whilst retaining the ability to tie in to the color system when mapping styles from Figma.
2025-06-19 17:28:47 +01:00
Luis Hebendanz
4c0ad55e35
Merge pull request 'clan-lib: machines.py: Remove host_key attribute' ( #4034 ) from Qubasa/clan-core:minimize_machine_obj into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4034
2025-06-19 16:14:49 +00:00
Qubasa
fae4d39a10
clan-lib: machines.py: Remove host_key attribute
2025-06-19 17:55:56 +02:00
Luis Hebendanz
72dc352a3e
Merge pull request 'clan-lib: machines.py: Remove private_key attribute' ( #4033 ) from Qubasa/clan-core:minimize_machine_obj into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4033
2025-06-19 15:40:13 +00:00
Qubasa
cce4d561e4
clan-lib: machines.py: Remove private_key attribute
2025-06-19 17:28:50 +02:00
brianmcgee
acaf04175d
Merge pull request 'feat(ui): Sidebar nav' ( #4018 ) from ui/sidebar into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4018
2025-06-19 15:19:07 +00:00
Luis Hebendanz
98bf2f325b
Merge pull request 'clan-app: ui-2d remove unecessary imports' ( #4032 ) from Qubasa/clan-core:ui-2d-logs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4032
2025-06-19 15:15:36 +00:00
Brian McGee
f7a5c99bb3
feat(ui): Sidebar nav
2025-06-19 16:03:21 +01:00
Qubasa
0d984488ed
clan-app: Add vscode workspace for ui-2d
2025-06-19 17:03:04 +02:00
Qubasa
7dadcd99ff
clan-app: ui-2d remove unecessary imports
2025-06-19 16:52:45 +02:00
Luis Hebendanz
c4fe02ad0b
Merge pull request 'clan-app: 3d UI Remove unused files and exports' ( #4029 ) from Qubasa/clan-core:ui_minimize-3d into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4029
2025-06-19 14:48:51 +00:00
Qubasa
3d20b41138
clan-app: Add unused import checker and autofixer. Remove unused files.
2025-06-19 15:14:08 +02:00
renovate[bot]
75a6aa810e
chore(deps): update nix-darwin digest to 0d71cbf
2025-06-19 10:20:15 +00:00
kenji
4b20d6f56a
Merge pull request 'pkgs/agit: Support osc8 in list subcommand' ( #4028 ) from kenji/pkgs/agit: Support osc8 in list subcommand into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4028
2025-06-19 09:15:46 +00:00
Qubasa
eb47cf08b8
clan-app: 3d UI Remove unused files and exports
2025-06-18 22:42:00 +02:00
Luis Hebendanz
5f31825514
Merge pull request 'clan-app: Remove unused files and exports from ui-2d' ( #4027 ) from Qubasa/clan-core:ui_minimize into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4027
2025-06-18 20:36:04 +00:00
Qubasa
0a865eee6c
clan-app: Remove unused files and exports
2025-06-18 22:11:38 +02:00
a-kenji
6ee27bd8eb
pkgs/agit: Support osc8 in list subcommand
...
Support osc8 escape sequences in `agit list` subcommand.
2025-06-18 21:47:27 +02:00
renovate[bot]
b6da0b5683
chore(deps): update dependency playwright to ~1.53.0
2025-06-18 19:34:21 +00:00
renovate[bot]
4c525c436a
fix(deps): update dependency three to ^0.177.0
2025-06-18 19:20:28 +00:00
Luis Hebendanz
ac9ed0ddba
Merge pull request 'ui_minimize' ( #4024 ) from Qubasa/clan-core:ui_minimize into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4024
2025-06-18 19:17:59 +00:00
Qubasa
0ac445facc
clan-app: Add knip dead code analyzer
2025-06-18 21:10:18 +02:00
Qubasa
f47db5f7c1
clan-app: Fix npm run build in ui-2d
2025-06-18 20:56:52 +02:00
kenji
c8f1434b5f
Merge pull request 'pkgs/agit: Add PR status checks to the list subcommand' ( #4021 ) from kenji/pkgs/agit: Add PR status checks to the list subcommand into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4021
2025-06-18 18:52:16 +00:00
kenji
fbc7c1188f
Merge pull request 'pgks/agit: Update documentation' ( #4022 ) from kenji/pgks/agit: Update documentation into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4022
2025-06-18 18:52:10 +00:00
Qubasa
4f60dbfe28
clan-app: Add more symlinks to ui-2d
2025-06-18 20:34:54 +02:00
Qubasa
c53874c525
clan-app: Working npm run check in ui-2d folder
2025-06-18 20:31:47 +02:00
a-kenji
cb1eb3ce20
pgks/agit: Update documentation
2025-06-18 20:31:44 +02:00
a-kenji
1a771cca82
pkgs/agit: Add PR status checks to the list subcommand
2025-06-18 20:28:36 +02:00
Luis Hebendanz
03b68afaa5
Merge pull request 'UI create a separate ui-2d folder' ( #3998 ) from Qubasa/clan-core:ui_overhaul into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3998
2025-06-18 18:11:28 +00:00
Qubasa
f80332a3f0
clan-app: Symlink more stuff from ui to ui-2d
2025-06-18 18:07:58 +02:00
Qubasa
e785a6be4e
clan-app: Move changes for 2D view to separate ui-2d folder
2025-06-18 17:58:49 +02:00
Luis Hebendanz
f4a7016ece
Merge pull request 'pkgs/cli(machines): Move inventory warning to debug information' ( #4012 ) from kenji/ke-iventory-warning-debug into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4012
2025-06-18 15:39:08 +00:00
kenji
659d2a4c04
Merge pull request 'pkgs/clan: Improve machines list tests' ( #4014 ) from kenji/pkgs/clan: Improve machines list tests into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4014
2025-06-18 14:39:54 +00:00
DavHau
7e18dc6bb4
vars-check: enable debug logging for cache misses
2025-06-18 14:22:57 +00:00
brianmcgee
8ea465d331
Merge pull request 'feat(ui): upgrade to storybook 9' ( #3954 ) from feat/storybook-9 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3954
2025-06-18 14:19:12 +00:00
Brian McGee
f0322a8411
feat(ui): upgrade to storybook 9
...
Replaces rollup with wasm version for portability.
2025-06-18 15:03:43 +01:00
kenji
1f8fef726b
Merge pull request 'agit: Add list subcommand to list current open AGit PRs' ( #4015 ) from kenji/agit: Add list subcommand to list current open AGit PRs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4015
2025-06-18 14:03:29 +00:00
a-kenji
c83d3a595e
pkgs/clan: Improve machines list tests
...
Extend and Improve `clan machines list` testing as well as the `--tags`
subcommand.
2025-06-18 16:03:02 +02:00
a-kenji
0adbf043de
agit: Add list subcommand to list current open AGit PRs
...
Add a `list` subcommand to list currently open `AGit` PRs through the
cli.
2025-06-18 15:45:41 +02:00
pinpox
445b7a2027
Merge pull request 'Deprecated unsused modules' ( #3996 ) from remove-services into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3996
2025-06-18 11:43:02 +00:00
pinpox
7f840fde61
Merge branch 'main' into remove-services
2025-06-18 11:30:31 +00:00
pinpox
6de9a9a910
Remove services and add deprecation warning
2025-06-18 13:18:25 +02:00
a-kenji
52c3006d9b
pkgs/cli(machines): Move inventory warning to debug information
...
Move the inventory warning to debug information and improve the error.
This is an alternative proposal to: #4009
2025-06-18 13:15:37 +02:00
Luis Hebendanz
100e01b32c
Merge pull request 'pkgs/clan: Rename target_host_str' ( #4010 ) from kenji/ke-iventory into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4010
Reviewed-by: Luis Hebendanz <consulting@qube.email >
2025-06-18 10:58:58 +00:00
Qubasa
1b23d5dcf3
clan-app: Fix storybook tests
2025-06-18 12:55:47 +02:00
Qubasa
0c432d5c25
clan-app: Untangle Machine Details into separate components. Makes it non functional for now.
2025-06-18 12:49:43 +02:00
Qubasa
143dfc99dc
clan-app: Improve api test page
2025-06-18 12:49:43 +02:00
Qubasa
3835624040
clan-lib: Set "root" as default user in Remote object
2025-06-18 12:49:43 +02:00
a-kenji
c1a4de843a
pkgs/clan: Rename target_host_str
...
The `target_host_str` is a confusing choice, since it can be either
the `targetHost` or `buildHost`.
2025-06-18 12:03:57 +02:00
Michael Hoang
d9f2c1681f
Merge pull request 'cli: fix machines update failing with protocol mismatch on macOS' ( #4008 ) from push-rmpkuustzxxu into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4008
2025-06-18 10:01:32 +00:00
kenji
b4b6bf8e16
Merge pull request 'docs/testing: Improve testing documentation' ( #4007 ) from kenji/docs/testing: Improve testing documentation into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4007
2025-06-18 09:41:37 +00:00
Michael Hoang
84e280e32d
cli: fix machines update failing with protocol mismatch on macOS
2025-06-18 16:30:11 +07:00
a-kenji
688aad716d
docs/testing: Improve testing documentation
2025-06-18 11:12:30 +02:00
kenji
d531ee2296
Merge pull request 'gitignore: Remove unused dream2nix rules' ( #4005 ) from kenji/gitignore: Remove unused dream2nix rules into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4005
2025-06-18 09:12:15 +00:00
kenji
7d96e8455e
Merge pull request 'gitignore: Remove obsolete or unused rules' ( #4004 ) from kenji/gitignore: Remove obsolete or unused rules into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4004
2025-06-18 09:11:10 +00:00
kenji
12151b91dd
Merge pull request 'clanServices/hello-world: Fix eval-test example formatting' ( #4003 ) from kenji/clanServices/hello-world: Fix eval-test example formatting into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4003
2025-06-18 09:08:27 +00:00
a-kenji
2cb588d5a8
gitignore: Remove unused dream2nix rules
2025-06-18 10:52:18 +02:00
a-kenji
f6680a1f8b
gitignore: Remove flatpak
2025-06-18 10:50:37 +02:00
a-kenji
3f8203077e
gitignore: Remove unclear gitignored files
2025-06-18 10:50:20 +02:00
Mic92
69b7b61cc7
Merge pull request 'pkgs/agit: Update documentation' ( #3995 ) from kenji/pkgs/agit: Update documentation into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3995
2025-06-18 08:48:11 +00:00
a-kenji
111172e514
clanServices/hello-world: Fix eval-test example formatting
2025-06-18 10:45:59 +02:00
renovate[bot]
90d3de3514
chore(deps): update data-mesher digest to cb75111
2025-06-17 19:21:50 +00:00
Mic92
63e741ed20
Merge pull request 'Introduce flake parts module for clan nixos tests' ( #4000 ) from speed-up-ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4000
2025-06-17 19:20:08 +00:00
Jörg Thalheim
a260083919
fix(vars-check): include generator scripts in test closure
...
The vars-check test was failing because it only included the
runtimeInputs of generators but not the actual generator scripts
themselves. This caused the test to fail when trying to execute
generators that reference local files (like generate.py).
Added allGeneratorScripts to the closureInfo to ensure all generator
scripts and their dependencies are available in the test environment.
2025-06-17 21:09:59 +02:00
Jörg Thalheim
80a0f66809
no longer make test derivation depends on vars-check
...
this triggers more builds than necessary.
2025-06-17 21:09:59 +02:00
Jörg Thalheim
c03fda1b84
zerotier: migrate to clan.nixosTests module
2025-06-17 21:09:59 +02:00
Jörg Thalheim
be760704eb
wifi: migrate to clan.nixosTests module
2025-06-17 20:39:06 +02:00
Jörg Thalheim
9cefd70bf8
users: migrate to clan.nixosTests module
2025-06-17 20:39:06 +02:00
Jörg Thalheim
d31c9d1537
trusted-nix-caches: migrate to clan.nixosTests module
2025-06-17 20:38:31 +02:00
Jörg Thalheim
8e2fc1056f
state-version: migrate to clan.nixosTests module
2025-06-17 20:38:31 +02:00
Jörg Thalheim
41513e6a70
sshd: migrate to clan.nixosTests module
2025-06-17 19:32:04 +02:00
Jörg Thalheim
e5d6d6e7f9
packages: migrate to clan.nixosTests module
2025-06-17 19:31:09 +02:00
Jörg Thalheim
b2a587021f
mycelium: migrate to clan.nixosTests module
2025-06-17 19:30:21 +02:00
Jörg Thalheim
509b18647c
localsend: migrate to clan.nixosTests module
2025-06-17 19:29:08 +02:00
Jörg Thalheim
3535350cb6
hello-world: migrate to clan.nixosTests module
2025-06-17 19:28:12 +02:00
Jörg Thalheim
4459899fb6
heisenbridge: migrate to clan.nixosTests module
2025-06-17 19:27:15 +02:00
Jörg Thalheim
a6f0f27f02
garage: migrate to clan.nixosTests module
2025-06-17 19:26:25 +02:00
Jörg Thalheim
88e935f7c9
ergochat: migrate to clan.nixosTests module
2025-06-17 19:24:09 +02:00
Jörg Thalheim
12cdc279e8
deltachat: make test more robust with wait_until_succeeds
...
Use wait_until_succeeds for the first network check to ensure the
service is fully ready before testing connectivity.
2025-06-17 19:18:04 +02:00
Jörg Thalheim
e9cded4fd8
deltachat: migrate to clan.nixosTests module
2025-06-17 19:13:25 +02:00
Jörg Thalheim
065c697e0b
borgbackup: migrate to clan.nixosTests module
2025-06-17 19:04:47 +02:00
Jörg Thalheim
268a95f2e4
clan-nixos-test: pass clan-core to test nodes via module args
...
This allows tests that need access to clan-core (e.g. for clan-cli or
dependencies) to use it within their node configurations.
2025-06-17 19:04:47 +02:00
Jörg Thalheim
3a1b2aede8
admin: migrate to clan.nixosTests module
2025-06-17 19:04:47 +02:00
Jörg Thalheim
29b2c51391
clan-nixos-test: add individual vars-checks back
...
The consolidated vars-check was too slow to eval. Individual vars-checks allow for better parallelization.
2025-06-17 18:49:16 +02:00
Jörg Thalheim
28d3cee649
introduce flake parts module for clan nixos tests
2025-06-17 18:38:52 +02:00
Mic92
9518fb660b
Merge pull request 'fix: correctly check existence of CLAN_TEST_STORE paths in cache' ( #3999 ) from fix-clan-test-store-caching into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3999
2025-06-17 15:38:13 +00:00
Jörg Thalheim
d9c97fcb10
fix: correctly check existence of CLAN_TEST_STORE paths in cache
...
The flake cache was only checking existence for paths starting with
NIX_STORE_DIR (defaulting to /nix/store), but not for paths in the
test store when CLAN_TEST_STORE is set. This caused the cache to
return stale references to paths that had been garbage collected.
This fix updates the is_cached method to also check for paths in
the test store, preventing cache misses during tests.
2025-06-17 17:21:06 +02:00
Mic92
9064848d86
Merge pull request 'machines: fix remote-program for darwin nix copy' ( #3993 ) from darwin-remote-program into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3993
2025-06-17 14:45:43 +00:00
Jörg Thalheim
5dbe44bb43
machines: fix remote-program for darwin nix copy
...
MacOS doesn't come with a proper login shell for ssh and therefore
doesn't have nix in $PATH as it doesn't source /etc/profile.
This restores the remote-program parameter that was accidentally
removed in commit cff5d61f26 .
2025-06-17 16:30:04 +02:00
Mic92
578b620e68
Merge pull request 'garage: make test more reliable' ( #3997 ) from garage-test-fix into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3997
2025-06-17 14:26:48 +00:00
Jörg Thalheim
733fe41b4e
garage: make test more reliable
2025-06-17 16:10:38 +02:00
Mic92
d4d37ad4ff
Merge pull request 'add run-vm-test-offline package for offline VM testing' ( #3994 ) from run-vm-test-offline into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3994
2025-06-17 13:20:19 +00:00
kenji
12247c705a
Merge pull request 'chore(deps): lock file maintenance' ( #3975 ) from renovate/lock-file-maintenance into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3975
2025-06-17 12:47:57 +00:00
renovate[bot]
21ca1ed152
chore(deps): lock file maintenance
2025-06-17 12:47:57 +00:00
Mic92
64e5d40de5
Merge pull request 'clan-lib: Make Remote overridable over function arguments' ( #3969 ) from Qubasa/clan-core:nix_transform_host_options into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3969
2025-06-17 12:47:00 +00:00
a-kenji
f796a7531c
pkgs/agit: Update documentation
2025-06-17 14:45:43 +02:00
kenji
8a2bd8c03c
Merge pull request 'agit: Add latest commit information to comment' ( #3990 ) from kenji/agit: Add latest commit information to comment into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3990
2025-06-17 12:43:22 +00:00
Jörg Thalheim
f7f6b22f92
add run-vm-test-offline package for offline VM testing
...
This package allows running NixOS VM tests in an offline environment
using network namespace isolation. It builds the test driver and runs
it with unshare to ensure no network access.
2025-06-17 14:41:12 +02:00
Qubasa
2c57c35517
clan-lib: Refactor remote host handling to function parameters
...
This refactoring improves the separation of concerns by moving remote host creation logic from the Machine class to the calling functions, making the code more flexible and testable.
2025-06-17 14:04:22 +02:00
Qubasa
75bfed044b
clan-app: Fix UI errors
2025-06-17 13:53:43 +02:00
Qubasa
344259aa56
genmoon.py: Fix type error
2025-06-17 13:53:43 +02:00
Qubasa
fa4160dda1
clan-lib: Make Remote overridable over function arguments
2025-06-17 13:53:43 +02:00
a-kenji
7c871cdeb2
agit: Add latest commit information to comment
...
Add latest commit information to the editor comments.
That way we can easily adjust the PR based on the latest commit.
2025-06-17 13:50:36 +02:00
Johannes Kirschbauer
aabe253bf9
feat(clan-services): enable recursive services
...
Using recursive services is potentially complex and requires carefully
designed services. Nested Services create nixos modules which must be
mergable as always.
2025-06-15 20:06:02 +02:00
Johannes Kirschbauer
e14fbb66b1
chore(clan-service): remove and unify unecessary bindings
2025-06-14 20:03:53 +02:00
Johannes Kirschbauer
ca0a56292e
feat(clan-service): add module context for better error messages
2025-06-14 20:03:53 +02:00