Commit Graph

38 Commits

Author SHA1 Message Date
lassulus
300aaa48e7 clan-cli: use new flake caching for machines 2025-02-23 15:58:03 +01:00
lassulus
2a8f40e91a clan_cli machines: use Flake instead of FlakeId 2025-02-07 06:26:09 +01:00
Jörg Thalheim
71593604e5 HistoryEntry: add cleaner typesafe json deserialization 2024-11-11 11:36:17 +01:00
danjujan
c2b455c750 vms/qemu: do not always use waypipe graphic options 2024-11-11 10:41:26 +01:00
Jörg Thalheim
b1b05485dd introduce better vm management abstraction and use it in tests 2024-10-08 17:51:55 +00:00
Jörg Thalheim
725009d4a8 vm_config: deprecate a few fields 2024-10-08 17:51:55 +00:00
Jörg Thalheim
b313f2d066 make all same-module imports relative, the rest absolute
This makes sorting more consitent.
2024-09-02 13:00:19 +02:00
Qubasa
f74df54edd clan-vm-manager: Fix regression 2024-08-21 15:48:43 +02:00
Qubasa
31161322d6 clan-vm-manager: Fix waypipe regression in nix code 2024-07-23 13:20:02 +02:00
Qubasa
131299694b clan-vm-manager: Restore to known good version 2024-07-19 22:07:34 +02:00
Jörg Thalheim
6037ad1ce0 move FlakeId to flake id
move FlakeId to flake id
2024-07-03 18:28:55 +02:00
Jörg Thalheim
2f1dac6962 make machine class now a dataclass 2024-07-03 12:34:43 +02:00
DavHau
4db2e8303f refactor: rename clanCore -> clan.core 2024-06-18 18:32:40 +07:00
a-kenji
3abe481316 clan: add dynamic completions to clan vms inspect 2024-06-04 15:50:50 +02:00
Qubasa
93ca333227 clan_cli: Add TimeTable class to cmd.py. Fix bugs in Machine rewrite 2024-03-08 22:01:54 +07:00
Qubasa
8194b61e4b cli,nix: Add machine_icon, machine_description 2024-02-06 19:25:34 +07:00
a-kenji
de041d4b2c vms: rename wayland attrs to waypipe
And remove the options from the cli interface.
2024-02-01 10:14:36 +07:00
lassulus
bdd1f9be6d machines.Machine: refactor flake_dir -> flake; use Machine class in vm 2024-01-24 15:49:12 +01:00
Qubasa
8da8889b5d CLI: History supports multiple attrs from the same url now. Errors when executing the cli are formatted better 2024-01-16 16:16:12 +01:00
DavHau
4bdf769075 VMs: persist state folders on host
Done:
- move vm inspect attrs from system.clan.vm.config to clanCore.vm.inspect. This gives us proper name and type checking. everything in `system` is basically freeform, so the previous option definitions were never enforced
- when running VMs, mount state directory from ~/.config/clan/vmstate/{...} from the host to /var/vmstate inside the vm
- create bind mount inside the VM from /var/vmstate/{folder} to / for all folders defined in clanCore.state.<name>.folders

TODOs:
- make sure directories in ~/.config/clan/vmstate never collide (include hash of clan-url, etc.)
- port impure test to python
2024-01-08 18:38:07 +07:00
Qubasa
9c7f62a4a5 Refactor subprocess to cmd.py part 1. Fixed clan_uri test. 2024-01-02 17:21:06 +01:00
Qubasa
4506202a82 Added clan flakes inspect command. Improved ClanURI. Added democlan as dependency in flake.nix 2023-12-09 00:09:21 +01:00
Jörg Thalheim
26c6954db0 move clanName into nixos machine configuration 2023-12-08 15:05:56 +00:00
Jörg Thalheim
10930c27bf make vm inspect non-async 2023-12-08 13:59:24 +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
e97bcbd94f make sure that flake url is always set in the cli 2023-12-08 11:05:22 +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
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
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
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
Jörg Thalheim
c03effed54 move out vm logic out of controller 2023-10-03 17:24:08 +02:00
Qubasa
0b47a1f9e1 Updated to main 2023-10-03 13:12:44 +02:00
lassulus
d1cf62cc59 clan-cli: init vm command 2023-09-29 19:18:27 +02:00