Commit Graph

60 Commits

Author SHA1 Message Date
Jörg Thalheim
821e5e0a7b disable tty0 when using wayland
we don't vga output and use our serial console instead
2023-12-08 16:19:09 +01:00
Jörg Thalheim
3054b9c77d move clanName into nixos machine configuration 2023-12-08 16:03:29 +01:00
Jörg Thalheim
0e91f8721f prefix nixpkgs# explicitly in nix_shell
This makes the function usage less confusing (you can now tell from the call side what are flags and what is passed to nix-shell) and allows to use different flakes to download packages.
2023-12-08 15:14:14 +01:00
Jörg Thalheim
af3001a3ac vms/run: split large vm run method into smaller ones 2023-12-08 15:09:48 +01:00
Jörg Thalheim
49010f4d46 add wayland option 2023-12-08 14:13:47 +01:00
Jörg Thalheim
10930c27bf make vm inspect non-async 2023-12-08 13:59:24 +01:00
Jörg Thalheim
8cff166393 vms/run: rename flake_url to flake-url 2023-12-08 13:40:28 +01:00
Jörg Thalheim
4b16269a38 vms/run/inspect: also make it more type-safe
nix will show proper error messages when it cannot find a flake.
2023-12-08 12:08:48 +01:00
Jörg Thalheim
218478c801 vms/run: make flake field option always have a value 2023-12-08 12:08:45 +01:00
Jörg Thalheim
b9ca10c4da make cli options more type safe using a dataclass 2023-12-08 11:31:29 +01:00
Jörg Thalheim
e97bcbd94f make sure that flake url is always set in the cli 2023-12-08 11:05:22 +01:00
Jörg Thalheim
b0ecc17645 get rid of task_manager 2023-12-06 15:53:23 +01:00
Jörg Thalheim
9d64ccb08e integegrate remote-viewer instead of spicy 2023-11-29 16:07:12 +01:00
Jörg Thalheim
6f0722c692 modernisation for python 3.11 2023-11-29 13:29:45 +00:00
Jörg Thalheim
7d755beca6 enable more linting 2023-11-29 13:29:45 +00:00
Jörg Thalheim
4a19e3af95 rename vms create to vms run 2023-11-24 15:00:08 +01:00
Jörg Thalheim
72453b5078 start spice in background 2023-11-23 17:56:05 +01:00
Jörg Thalheim
935acbd94a spice: use unix socket instead of tcp 2023-11-23 17:34:06 +01:00
Jörg Thalheim
93ab408827 switch to spice for graphical vms 2023-11-23 16:59:07 +01:00
Jörg Thalheim
4f18c48892 vms: start with cpu=max
This unlocks some cpu extensions
2023-11-23 16:55:36 +01:00
Jörg Thalheim
647a4214fb get rid of pydantic in cli 2023-11-21 12:48:35 +00:00
lassulus
082d628497 clan_cli: flake_name -> flake_dir 2023-11-15 16:23:28 +01:00
Jörg Thalheim
15df81b45e drop verbose command logging in task manager 2023-11-15 07:21:26 +01:00
Jörg Thalheim
706e7970f4 vms/create: drop extra flake argument and make it work with local flakes 2023-11-10 13:43:14 +01:00
lassulus
efafe6f0e3 clan-cli secrets: flake_name -> flake_dir 2023-11-05 16:58:48 +01:00
Qubasa
a00056824d API: Added /api/flake/list. Added API grouping and description for better visibility 2023-11-03 22:05:33 +01:00
Jörg Thalheim
d08fe82864 switch from black to ruff for formatting 2023-11-03 13:38:13 +01:00
Jörg Thalheim
542bf47820 add nix option flag that is passed to underlying nix commands 2023-11-03 12:28:26 +01:00
Jörg Thalheim
ac754e1b44 vms/create: try virtio for vga
seems to suck less than std.
2023-10-31 15:34:53 +01:00
Jörg Thalheim
81e40ac34c vms/create: use tmpdir again 2023-10-31 13:53:54 +01:00
Jörg Thalheim
f33ed3eec6 vms/create: allow xchg/secrets dir to exist 2023-10-31 13:53:54 +01:00
Qubasa
750b4b6b7e Fixing test_vms_api test 2023-10-27 19:26:03 +02:00
Qubasa
5bd2345bc1 Commit only for debugging Container 2023-10-27 19:26:03 +02:00
Qubasa
0be3dac289 nix fmt 2023-10-27 19:21:50 +02:00
Qubasa
8ff80b025c Fixing a multitude of tests 2023-10-27 19:21:50 +02:00
Qubasa
adffdc14f6 Added repro_env_break debugging command. This spawn a terminal inside the temp home folder with the same environment as the python test 2023-10-27 19:20:17 +02:00
Qubasa
3dc7d12e9c Added ref to Qubasa-main in template/new-clan/flake.nix 2023-10-27 19:20:17 +02:00
Qubasa
8e9034ad02 Added clanName argument to clan-core.lib.builClan 2023-10-27 19:20:17 +02:00
Qubasa
9c8829c32f nix fmt 2023-10-27 19:19:45 +02:00
Qubasa
6d0deefa6b Added ipdb as breakpoint console. Improved logging. 2023-10-27 19:19:45 +02:00
Qubasa
0ab2b853f2 Improved logging messages. Added ClanError if flake create or machine create already exist 2023-10-27 19:18:45 +02:00
Qubasa
f976121fa6 Added flake_name:str argument everywhere, nix fmt doesn't complain anymore 2023-10-27 19:15:40 +02:00
Qubasa
2ad87785c0 Added state directory. 2023-10-27 19:11:27 +02:00
Qubasa
58b54bb9df API: Added Path validators. api/flake/create inits git repo. Fixed vscode interpreter problem 2023-10-27 19:11:27 +02:00
lassulus
b9208134f5 vms.create: don't generate secrets if clan is remote 2023-10-11 12:01:42 +02:00
Qubasa
942aa10a31 API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create 2023-10-09 14:01:34 +02:00
lassulus
9457a0f4b9 vms: support secrets and fix cross compilation 2023-10-04 18:04:27 +02:00
lassulus
0ed50d994b task_manager: fix race conditions 2023-10-04 17:52:06 +02:00
clan-bot
4a72889bd3 Merge pull request 'improve task manager to report exceptions better' (#402) from Mic92-main into main 2023-10-04 14:51:41 +00:00
Jörg Thalheim
b0b680c39d improve task manager to report exceptions better 2023-10-04 16:49:58 +02:00