Jörg Thalheim
f3512b853a
remove nix_shell_legacy
2025-04-16 21:03:58 +02:00
Jörg Thalheim
837789010e
rename nix_shell_legacy to nix_shell and run_cmd to nix_shell
...
Than it's more obvious that we need to migrate.
2025-04-16 18:27:01 +00:00
lassulus
300aaa48e7
clan-cli: use new flake caching for machines
2025-02-23 15:58:03 +01:00
Qubasa
ca946408f4
clan-cli: Fix garbled clan vms run output. docs: Improve debugging guide
2025-02-13 16:17:55 +07:00
lassulus
2a8f40e91a
clan_cli machines: use Flake instead of FlakeId
2025-02-07 06:26:09 +01:00
Jörg Thalheim
3bcbc8fa3d
reformat after update
2025-01-14 15:30:29 +01:00
Qubasa
b9091beff9
clan-cli: Replace log.info to machine.info if applicable
2024-12-12 15:36:17 +01:00
Jörg Thalheim
cabdca4cd7
vms: don't leak vsock sockets in error case
2024-12-11 17:44:09 +00:00
Jörg Thalheim
96773c3ccc
waypipe: only supported on Linux
2024-12-11 14:38:36 +00:00
lassulus
5c46b3b0a7
spawn_vm: pass stdin
2024-12-04 16:57:49 +01:00
lassulus
f0e415066e
qemu_command: disable monitor if non interactive
2024-12-04 16:44:30 +01:00
lassulus
64c5718bd4
start_vm: log VM start command
2024-12-04 16:43:59 +01:00
Qubasa
570bceff4e
clan-cli: Fix ignored debug flag in clan vms run, refactor Host.run to use RunOpts
2024-12-03 16:01:51 +01:00
Qubasa
1f98df96e3
clan-cli: cmd.run now has its options extracted to a dataclass
2024-11-28 15:26:37 +01:00
Qubasa
80045a9af1
clan-cli: Add -L option to nixos-rebuild switch to still have build output, simplify logging code
2024-11-28 10:42:43 +01:00
Qubasa
4e6051acdc
docs: Fix nix flake check problem with diskId
2024-11-25 18:39:16 +01:00
Qubasa
979e5e839d
clan-cli: Refactor ssh part 2, Refactor custom_logger
2024-11-22 22:08:50 +01:00
danjujan
1e20a4cda9
vms/qemu: fix opengl detection
2024-11-20 10:20:30 +00:00
Jörg Thalheim
616ddca734
cmd: also process stdin
2024-11-13 13:23:42 +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
DavHau
9cf055f1cc
vms run: disable waypipe on xorg by default
2024-10-10 17:06:38 +07:00
Jörg Thalheim
adbdae449d
vms/run: make portmap a dict to fix serializer
2024-10-08 17:51:55 +00:00
Jörg Thalheim
1ed04fb51e
vms/run: better defaults for run api
2024-10-08 17:51:55 +00:00
Jörg Thalheim
cf3c67d830
expose the option to run commands in virtual machines
2024-10-08 17:51:55 +00:00
Jörg Thalheim
6cae6341c9
add a flag to start qemu non-interactive
2024-10-08 17:51:55 +00:00
Jörg Thalheim
c33b2b200a
vms/run: don't use deprecated clanCore option
2024-10-08 17:51:55 +00: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
f9a42831e4
start to name temporary directories in more places
2024-10-01 18:57:59 +02:00
Jörg Thalheim
29909e49d3
apply TRY lint
2024-09-03 18:13:46 +02:00
Jörg Thalheim
1fa0e72bea
use pathlib everywhere
2024-09-02 18:26:13 +02:00
Jörg Thalheim
cb16cda3fa
add RET, Q, RSE lint
2024-09-02 15:58:49 +02:00
Jörg Thalheim
e150b37fb8
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
22d6e5e153
enable comprehensions linting rules
2024-09-02 13:35:52 +02:00
Jörg Thalheim
109d1faf9e
enable bug-bear linting rules
2024-09-02 13:26:07 +02: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
DavHau
a4847915de
clan-cli/vms: add option --publish to forward ports from host to guest
2024-08-04 15:28:51 +07: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
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