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
Johannes Kirschbauer
1128bf1cac
API: init install machine
2024-08-13 18:58:20 +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
a-kenji
32a20caad4
clan: add dynamic completions
...
Add dynamic completion scaffolding to the clan `cli`.
Also add a dynamic completion mechanism for machines for commands that
have machines as their sole argument.
More intricate dynamic completions will be implemented in follow up
PR's.
2024-05-31 12:55:41 +02:00
Jörg Thalheim
fc3f65fb57
allow to override nix options in update/install/flash commands
2024-05-29 10:14:14 +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
Qubasa
bae03fa338
Add --no-reboot flag to clan machine install
2024-05-14 15:41:15 +02:00
a-kenji
c7e662806f
clan-cli: add --json and --png flags to machine install
...
Allow using `clan machines [machine] install` in conjunction with the
`--json` and `--png` flags.
Fixes #1180
2024-05-07 14:47:13 +02:00
a-kenji
b30bc64bee
clan: clan machines install use verbose flag
2024-04-19 16:38:39 +02:00
Jörg Thalheim
033e5194fb
refactor facts command to regenerate facts for all machines
2024-04-15 22:14:54 +02:00
Jörg Thalheim
9bbf2a745e
clan/install: drop -t flag from nixos-anywhere
2024-04-02 13:50:24 +02:00
lassulus
8d34c51df2
refactor secrets & facts -> secret_facts & public_facts
2024-03-23 05:46:54 +01:00
Jörg Thalheim
f9241448c5
nixos-install: also respect port
2024-03-17 22:18:22 +01:00
Jörg Thalheim
7412ae027e
allow to debug nixos-anywhere
2024-03-17 21:36:22 +01:00
Jörg Thalheim
36b788853a
drop secret store logging from install command
2024-03-17 21:32:23 +01:00
Jörg Thalheim
d84b5e7457
add confirmation prompt when installing
2024-03-07 14:13:11 +01:00
Jörg Thalheim
5e5077c31c
rename machine.host to machine.target_host
2024-02-06 17:21:42 +01:00
Jörg Thalheim
7d62e147a9
rename target_host to target_host_address
2024-02-06 17:21:42 +01:00
Jörg Thalheim
0745bcb9a0
machines/update: get flake_attr from machine class
2024-02-06 17:21:42 +01:00
Jörg Thalheim
584299e199
rename deployment address to target address
...
This is a prepares having a build server for deployment
2024-02-02 16:39:29 +07:00
lassulus
b6e67aac60
clan-cli install: use new Machine interface, fix mypy error
2024-01-24 15:49:24 +01:00
lassulus
bdd1f9be6d
machines.Machine: refactor flake_dir -> flake; use Machine class in vm
2024-01-24 15:49:12 +01:00
lassulus
1d4e533438
move secret stores into clan_cli codebase
2024-01-24 15:49:12 +01:00
Qubasa
7049573d28
Refactor subprocess to cmd.py part 2
2024-01-10 12:11:29 +01:00
Jörg Thalheim
a057f58229
cli/install: add option to specify alternative kexec url
2023-12-26 14:36:51 +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
61c5cb58e3
install: fix secrets upload
2023-11-29 11:38:01 +01:00
lassulus
082d628497
clan_cli: flake_name -> flake_dir
2023-11-15 16:23:28 +01:00
lassulus
efafe6f0e3
clan-cli secrets: flake_name -> flake_dir
2023-11-05 16:58:48 +01:00
Qubasa
768b567f21
nix fmt
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
b09448ab6b
Updated to main
2023-10-27 19:15:11 +02:00
Jörg Thalheim
0840eb5490
machines/install: call correct upload function
2023-10-14 15:56:04 +02:00
lassulus
01087e2da8
clan_cli: refactor secrets code into Machine class
2023-10-04 16:41:16 +02:00
lassulus
1b9ea830c9
clan-cli: add machines install
2023-10-04 16:34:37 +02:00