Commit Graph

1179 Commits

Author SHA1 Message Date
Jörg Thalheim
6d764b35f7 test_history_cli: clear capsys before reading from program 2024-08-15 17:59:11 +02:00
Jörg Thalheim
bc1c7c748f try to log content of flake substitutes 2024-08-15 17:43:57 +02:00
Johannes Kirschbauer
02662867fb UI: init update machine 2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
cacd49ff54 Serde: extend deserializer to accept anything 2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
90b13dc803 API: init machine update 2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
3522b8ba49 Machine update: fix upload sources from machine flake, instead of current directory 2024-08-15 15:08:15 +02:00
Jörg Thalheim
dc229a1b3b fixtures_flake: avoid fileinput
it seems that the inplace argument in some cases picks up output from
unrelated functions. Since the file is relativly small, we can just
replace the content in one go.
2024-08-14 16:56:44 +02:00
Johannes Kirschbauer
3f46d37b67 Clan-app: generate hw spec via ssh 2024-08-14 16:28:43 +02:00
Johannes Kirschbauer
eb844e83fe Clan-cli: remove unused show machine 2024-08-14 16:18:43 +02:00
clan-bot
f9e60851cb Merge pull request 'API: init setter for service instance config.' (#1879) from hsjobeki/clan-core:hsjobeki-main into main 2024-08-13 17:36:02 +00:00
clan-bot
cb333fb3a0 Merge pull request 'Serializer: filter None fields, to avoid conflicts with nix module system' (#1880) from hsjobeki/clan-core:hsjobeki-serde into main 2024-08-13 17:36:01 +00:00
Johannes Kirschbauer
68c65fb3fd API: add keyfile arg 2024-08-13 19:29:28 +02:00
Johannes Kirschbauer
8d1a1ddb17 Serializer: filter None fields, to avoid conflicts with nix module system 2024-08-13 19:27:59 +02:00
Johannes Kirschbauer
f873ac2388 API: init setter for service instance config. 2024-08-13 19:27:16 +02:00
Johannes Kirschbauer
1128bf1cac API: init install machine 2024-08-13 18:58:20 +02:00
DavHau
6892202bf2 vars: add test for deployment 2024-08-13 15:29:51 +02:00
Qubasa
f0a9a7a02b clan-cli: Add --show-trace to nix build and nixos-rebuild commands 2024-08-12 22:27:54 +02:00
Qubasa
9b7322fdab clan-cli: Add --wifi option to set wifi credentials. clan-app: Add wifi settings form to flash view 2024-08-07 21:35:06 +02:00
Johannes Kirschbauer
28167c5156 Clan-cli: remove unused debug flag in list machine 2024-08-07 12:17:32 +02:00
Johannes Kirschbauer
99dc5793b2 Clan-app: Add loading animations & improve async data handling 2024-08-06 22:29:11 +02:00
Johannes Kirschbauer
937c171769 Clan-app: refine create machine workflow via query operation 2024-08-06 16:04:21 +02:00
Johannes Kirschbauer
742e0a71b5 Clan-core: Rename clanName within Machines 2024-08-06 12:21:46 +02:00
DavHau
a4847915de clan-cli/vms: add option --publish to forward ports from host to guest 2024-08-04 15:28:51 +07:00
DavHau
629861d404 tests: improve testing framework for impure vm tests
Also fix computet sops secret paths for vars
2024-08-04 13:40:12 +07:00
Johannes Kirschbauer
ede5cbcf13 Fix: regression list_machines. Split into multiple functions
list_inventory_machines, list_nixos_machine, list_sops_machines
The caller of the function should specify which machines they wants to see
2024-08-03 12:43:35 +02:00
Johannes Kirschbauer
8b0212b828 Add build-clan module 2024-08-03 12:05:09 +02:00
DavHau
0ca3d036f2 vars: simplify tests 2024-08-03 15:47:35 +07:00
DavHau
e22ec9ea5a clan-cli/tests: improve test helpers for VMs 2024-08-03 15:26:53 +07:00
DavHau
d1c2f0b622 vars: introduce share flag 2024-08-03 15:26:53 +07:00
Qubasa
fb4ceebccf formatter.nix: Add prettier 2024-08-02 18:56:53 +02:00
Qubasa
3e9ebbc90f clan-app: Finish flash view. clan-cli: Flash cli now verifies if language and keymap are valid. 2024-08-02 17:51:45 +02:00
a-kenji
0a58adce18 clan: remove config subcommand
This removes the `config` subcommand from the cli and the documentation
to keep the api surface small.

While this functionality was convenient it doesn't need to be surfaced
by the clan cli.

The remaining `config` python module should be ported to the `clan-app`
in a follow up pr. Because the functionality is currently only used by
the `clan-app`.
Ideally together with: #1830.
2024-07-31 16:35:36 +00:00
Johannes Kirschbauer
8ddfaba599 Deserializer: add Literal; Annotated fields 2024-07-31 13:00:28 +02:00
clan-bot
6814946efa Merge pull request 'Deserializer: replace pydantic' (#1826) from hsjobeki/clan-core:hsjobeki-main into main 2024-07-30 12:36:08 +00:00
Johannes Kirschbauer
9db6cb8b6f Deserializer: add Nullable fields 2024-07-30 14:26:13 +02:00
a-kenji
72bbc2f094 clan: remove flatpak check
This check logs, if the cli is started inside a flatpak environment.
2024-07-30 14:21:15 +02:00
a-kenji
452c00f5f1 clan/secrets: improve naming of secret key
Change the secret key help wording to: `secret-name`,
to convey that it is the key and not the value.

Fixes: #1696
2024-07-30 12:54:22 +02:00
Johannes Kirschbauer
5d8fa57f23 Deserializer: replace pydantic 2024-07-30 12:26:16 +02:00
Qubasa
ce1dec774e clan-vm-manager: Fix regression 2024-07-29 17:33:46 +02:00
Johannes Kirschbauer
fa0f393cbb Clan-app: edit clan, memoize active clan 2024-07-29 17:06:11 +02:00
DavHau
395c5cbace vars/sops: fix loading of vars from directory structure 2024-07-29 18:01:26 +07:00
Johannes Kirschbauer
4be5ed28db Clan-app: example disk view 2024-07-29 11:49:55 +02:00
Johannes Kirschbauer
395a7fc70e Serializer: use alias, make it configurable for different use cases 2024-07-29 09:01:06 +02:00
Johannes Kirschbauer
7a3fad01e0 PropagatedBuild inputs workaround 2024-07-26 15:23:25 +02:00
Johannes Kirschbauer
d7b6fc16a4 Serde: add unit tests for all serialization and deserialization logic 2024-07-26 14:23:41 +02:00
Jörg Thalheim
87a78ac6a8 fix error message when removing secrets 2024-07-24 20:21:10 +02:00
Jörg Thalheim
fe99fb8e34 remove 'Extra config:' warning 2024-07-24 20:04:31 +02:00
Johannes Kirschbauer
1a881e43e5 Clan-app: show clan details for each registered clan 2024-07-24 18:26:26 +02:00
DavHau
1b3dc65b89 vars/sops: store secrets in /sops/vars 2024-07-24 18:42:50 +07:00
clan-bot
49ace8a765 Merge pull request 'Inventory improvements' (#1795) from hsjobeki/clan-core:hsjobeki-main into main 2024-07-24 11:23:16 +00:00