Qubasa
66b5116483
clan-app: Fix storybook tests
2025-06-18 12:55:47 +02:00
Qubasa
48ef8dd33b
clan-app: Untangle Machine Details into separate components. Makes it non functional for now.
2025-06-18 12:49:43 +02:00
Qubasa
f0913e331a
clan-app: Improve api test page
2025-06-18 12:49:43 +02:00
Qubasa
a3478d8cc7
clan-lib: Set "root" as default user in Remote object
2025-06-18 12:49:43 +02:00
a-kenji
8e128239d9
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
a0f39a4a66
cli: fix machines update failing with protocol mismatch on macOS
2025-06-18 16:30:11 +07:00
Mic92
50e516e054
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
Jörg Thalheim
097024e8a9
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
Jörg Thalheim
a2eaf20492
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 e14f30bdc0 .
2025-06-17 16:30:04 +02:00
Mic92
50486d8035
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
Mic92
15b08116b9
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
ae7257c75e
pkgs/agit: Update documentation
2025-06-17 14:45:43 +02:00
kenji
6b6bad88e9
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
0200a0c16e
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
86536bae42
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
kenji
b94934e5c0
Merge pull request 'agit: Set COMMIT_EDITMSG as filetype' ( #3991 ) from kenji/agit: Set COMMIT_EDITMSG as filetype into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3991
2025-06-17 12:02:03 +00:00
Qubasa
8941b75d48
clan-app: Fix UI errors
2025-06-17 13:53:43 +02:00
Qubasa
d29bba48e7
clan-lib: Make Remote overridable over function arguments
2025-06-17 13:53:43 +02:00
a-kenji
9523a9135d
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
Mic92
520c0d78af
Merge pull request 'install: correctly pass nix options to nixos-anywhere' ( #3989 ) from nixos-anywhere-options into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3989
2025-06-17 11:49:13 +00:00
a-kenji
def1a6a20c
agit: Add -a flag alias for --auto
2025-06-17 12:45:37 +02:00
Jörg Thalheim
28a0f09514
install: correctly pass nix options to nixos-anywhere
...
The nix_options were collected but never passed to the nixos-anywhere command.
This fix adds the options to the command before the target host argument.
2025-06-17 12:43:20 +02:00
a-kenji
aee4ee67d6
agit: Set COMMIT_EDITMSG as filetype
2025-06-17 12:42:12 +02:00
Mic92
d6bc409418
Merge pull request 'make setupNixInNixPython a python package' ( #3984 ) from setupNixInNixPython-only into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3984
2025-06-17 10:14:53 +00:00
Jörg Thalheim
e5ff78c28f
Apply nix fmt on setupNixInNixPython-only
2025-06-17 12:01:12 +02:00
a-kenji
b22f706101
agit: Add documentation to EDIT_MSG and strip comments
...
Add documentation to EDIT_MSG and strip comments
2025-06-17 11:48:12 +02:00
a-kenji
f4faa3853f
agit: Allow specifying through EDITOR
2025-06-17 11:00:03 +02:00
a-kenji
dd3662b81e
pkgs/*: Remove pytest coverage testing from every single test run
...
There was no noticeable positive impact from having coverage reports on
every single test run.
While adding a separate command to check coverage might be added in the
future, the overhead of collecting the coverage for every test run made
seems not worth it currently.
2025-06-16 15:46:36 +00:00
hsjobeki
4e2ccf0117
Merge pull request 'Feat(machine/templates): simplify template args for machines command' ( #3937 ) from hsjobeki/template-ux into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3937
2025-06-14 08:25:28 +00:00
hsjobeki
e589aeb2b9
Merge pull request 'Docs(cli/flash): improve disk instructions' ( #3958 ) from hsjobeki/ux into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3958
2025-06-14 08:13:50 +00:00
Qubasa
2df223c7e8
clan-app: Propagate op_key to callApi callers.
2025-06-13 12:41:58 +02:00
Johannes Kirschbauer
99e5d7e671
Docs(cli/flash): improve disk instructions
2025-06-13 11:37:39 +02:00
Michael Hoang
7f667ccc16
cli: don't error when more than one SOPS key found locally
2025-06-13 14:37:19 +07:00
Michael Hoang
5dc321cfb0
cli: fix secrets key update failing when used with Nix in Nix
2025-06-13 13:36:29 +07:00
brianmcgee
6810a03960
Merge pull request 'UI: new Loader component; Button and Icon v2' ( #3908 ) from ui/button into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3908
2025-06-12 15:52:17 +00:00
Qubasa
c47b2ba869
clan-lib: unify get_taget_host and get_build_host
2025-06-12 16:42:28 +02:00
Qubasa
1a33f6a632
clan-cli: machine.get_inv_machine now uses actions.get_machine in the background
2025-06-12 16:36:55 +02:00
Qubasa
87f4fbfcbf
clan-cli: Fix check_machine_online to use Remote object instead of machine, this makes it possible to override HostKeyCheck properly
2025-06-12 16:36:55 +02:00
Qubasa
68b7c22faf
clan-cli: init machine from inventory
2025-06-12 16:36:55 +02:00
Qubasa
e27bb956c9
clan-lib: Add LogManager class
2025-06-12 16:24:40 +02:00
Qubasa
25a6108198
clan-lib: Move task functions to own file
2025-06-12 16:23:53 +02:00
Qubasa
18be41082b
clan-app: Fix api test page
2025-06-12 16:23:33 +02:00
lassulus
6aaedaa6df
generate_test_vars: add support for darwin
2025-06-12 14:49:12 +02:00
Brian McGee
ec62419668
feat(ui): new loader component; button and icon v2
2025-06-12 11:29:41 +01:00
Johannes Kirschbauer
abee3147ea
Fix(morph): ensure machine dir exists
2025-06-11 20:38:15 +02:00
Johannes Kirschbauer
fafb4d8b4e
fix(templates): add error handling
2025-06-11 20:22:20 +02:00
Johannes Kirschbauer
1724f127d5
feat(templates_urls): short circuit input names
2025-06-11 20:21:29 +02:00
Johannes Kirschbauer
32b5b7dc93
feat(flake): add function to get input names
2025-06-11 20:21:29 +02:00
Johannes Kirschbauer
6b684c45c3
feat(flake/select): add apply argument
2025-06-11 20:21:29 +02:00
Johannes Kirschbauer
799c23bb56
doc(cli/templates): improve help description
2025-06-11 17:00:10 +02:00