Jörg Thalheim
64956a7a0a
Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"
...
This reverts commit a598b878a5 .
2024-07-17 14:04:49 +02:00
DavHau
a598b878a5
clan-cli: deprecate nix_shell() in favor of run_cmd()
2024-07-16 14:03:17 +07: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
a-kenji
96f0ed1a8f
clan: add dynamic completions to clan vms run
2024-06-04 15:48:12 +02:00
a-kenji
578fc55e40
clan: facts generate allow regeneration of facts
...
Add `--regenerate` flag to `clan facts generate` which allows forcing
the generation of facts, regardless of their current existence.
Examples:
```
clan facts generate [MACHINE] --regenerate
```
or
```
clan facts generate [MACHINE] --service [SERVICE] --regenerate
```
2024-05-26 22:55:48 +02:00
a-kenji
4e87389a4d
clan: facts generate specific service
...
Add `--service` flag to the `clan` cli which allows specifying a certain
service to be generated.
Example:
```
clan facts generate [MACHINE] --service [SERVICE]
```
Fixes #1395
2024-05-26 21:52:56 +02:00
Jörg Thalheim
033e5194fb
refactor facts command to regenerate facts for all machines
2024-04-15 22:14:54 +02:00
DavHau
e389b86e91
vms/run.py: refactor use kwargs instead of dataclass for function args
2024-04-09 14:30:46 +07:00
Qubasa
941bc49c1d
clan-cli: Fix tmpdir leak and fix tests/temporary_dir inconsistencies
2024-03-27 15:51:52 +01:00
Jörg Thalheim
c59d9466b6
switch back to upstream waypipe
2024-03-25 13:34:02 +01:00
lassulus
8d34c51df2
refactor secrets & facts -> secret_facts & public_facts
2024-03-23 05:46:54 +01:00
Qubasa
93ca333227
clan_cli: Add TimeTable class to cmd.py. Fix bugs in Machine rewrite
2024-03-08 22:01:54 +07:00
Jörg Thalheim
83cbc18f66
treefmt
2024-03-07 14:13:11 +01:00
Qubasa
b25a559ff3
clan_vm_manager: Fix switch desync when pressed too fast. Secrets folder shared between build and run. clan_cli: run_vm now can have custom tmpdir location
2024-03-06 16:32:19 +07:00
lassulus
9880dede41
clan-cli: add interactive secrets/fact generation
2024-03-03 04:06:18 +01:00
lassulus
1eeaa8eead
clan-cli vms run: remove unused vm arg
2024-03-02 11:20:05 +01:00
clan-bot
e3d70c7693
Merge pull request 'clan-cli: remove unused flag' ( #867 ) from Mic92-fix-cross-system into main
2024-02-21 10:19:26 +00:00
Jörg Thalheim
458297bc10
clan-cli: remove unused flag
2024-02-21 10:55:53 +01:00
clan-bot
7e9c135b42
Merge pull request 'secret_store: drop update_check and generate_hash as abstract methods' ( #863 ) from Mic92-target_host into main
2024-02-20 18:01:51 +00:00
Jörg Thalheim
5a5e31e890
disable vgpu on non-nixos systems
2024-02-20 18:58:38 +01:00
clan-bot
99c5032b63
Merge pull request 'clan-vm-manager: Added clan icon to trayicon' ( #855 ) from Qubasa-main into main
2024-02-16 09:14:08 +00:00
Qubasa
8a0edddca7
clan-vm-manager: Fixing vm starting.
2024-02-16 16:10:49 +07:00
Jörg Thalheim
033dc6ee55
update comments about virtio-gpu
2024-02-16 09:52:13 +01:00
Jörg Thalheim
8a109b666b
vms: move qemu_command to its own module
2024-02-15 17:25:24 +01:00
Jörg Thalheim
5a718dd086
vms: drop unused xchdir
2024-02-15 17:19:43 +01:00
Jörg Thalheim
63c5065620
vms: move virtiofsd/waypipe into their own modules
2024-02-15 17:19:31 +01:00
lassulus
5ed4881687
vms: use vm fact/secret-store
2024-02-15 10:41:25 +01:00
clan-bot
f91df4fb88
Merge pull request 'clan_vm_manager: --debug enables debug mode in clan_cli too' ( #840 ) from Qubasa-add_spinner into main
2024-02-14 08:43:14 +00:00
Jörg Thalheim
2202e5a001
fix virtiofsd in CIs
2024-02-13 13:57:52 +01:00
Jörg Thalheim
7c41a0e0f8
also use qcow2 for volatile state
2024-02-13 11:45:42 +01:00
Jörg Thalheim
2970c1bc00
use virtio-console instead of serial for vm
2024-02-13 11:45:42 +01:00
Jörg Thalheim
d2d4267003
format rootfs in vm itself
2024-02-13 11:45:42 +01:00
Jörg Thalheim
4c6a95c844
drop unused mounts
2024-02-13 11:45:42 +01:00
Jörg Thalheim
53df1fc209
qemu: disable sea-bios and option rom
2024-02-13 11:45:42 +01:00
Jörg Thalheim
f8a10ab0fc
switch to sops-nix experimental branch
2024-02-13 11:45:23 +01:00
Jörg Thalheim
8f7eb704c7
vms: integrate virtiofsd
2024-02-13 11:44:17 +01:00
Qubasa
a1afd05fcb
clan_cli: Made qmp implementation lazy
2024-02-13 16:44:09 +07:00
Qubasa
e30168742e
clan_vm_manager: Added VM shutdown timeout
2024-02-12 14:16:44 +07:00
DavHau
a438a27c69
vms: init graceful shutdown for GUI
...
- add python modules for qemu protocols: QMP (hardware interactions) and QGA (guest service interaction)
- refactor state directory: remove name from path (already contains url)
- add impure vm test for basic qmp interaction
- simplify existing vm persistance test (factor out shared code)
- integrate graceful shutdown into GUI
the GUI integration still needs to be improved later:
- add fallback in case system doesn't react to powerdown button
- shutdown GUI switch fails if VM hasn't been started yet, and then remains in a wrong position
2024-02-09 19:55:18 +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
a-kenji
7000caafa9
vms: wayland attr specified in configuration
2024-02-01 09:00:43 +07:00
DavHau
af9b4c32e8
Reapply "vm-state: fix and improve testing"
...
This reverts commit a429ab5d3c .
vm-state: revert sysusers, improve testing
zerotier: enable persistence
vm-state: cleanup tests
2024-01-31 11:02:16 +07:00
Jörg Thalheim
33d755360d
clan-cli: implement waypipe backend
2024-01-30 10:37:52 +07:00
DavHau
a429ab5d3c
Revert "vm-state: fix and improve testing"
...
This reverts commit 41c97a5fce .
2024-01-29 15:16:10 +07:00
DavHau
41c97a5fce
vm-state: fix and improve testing
...
Also adds qemu qga protocol implementation to execute commands
2024-01-26 19:41:05 +07:00
lassulus
bdd1f9be6d
machines.Machine: refactor flake_dir -> flake; use Machine class in vm
2024-01-24 15:49:12 +01:00