Sacha Korban
9bc3d808c1
clan-cli: machines install: add phases option for nixos-anywhere
2025-02-13 17:10:02 +11:00
Michael Hoang
7ee0e2afbf
vars: support secrets for partitioning the disk
2025-01-21 11:13:51 +00:00
Michael Hoang
f199030119
install: support -i flag for specifying SSH private key
2025-01-19 18:53:18 +11:00
Michael Hoang
1d7e0c1c02
install: upload vars needed for activation for installation
2024-12-22 05:53:26 +00:00
Michael Hoang
da4d7fa365
machines: don't build on target machine if remote builders can be used
2024-12-21 10:43:17 +11:00
Qubasa
a452cc1a02
clan-cli: Fix clan install command and multiple other issues
2024-12-18 15:29:08 +01:00
a-kenji
6438e77519
pkgs/cli: Fix target_host for machines install
...
Use the correct `target_host`, if a user is defined.
Before the change:
```console
$ clan machines install
$ Install jon to 49.13.232.197? [y/N]
```
After the change:
```console
$ clan machines install
$ Install jon to root@49.13.232.197 ? [y/N]
```
Because root is the configured user for `target_host`, this is the
correct behavior.
2024-12-17 22:29:54 +01:00
Michael Hoang
7e16a1a268
clan_cli: always use --target-host if specified for machines install
2024-12-18 00:13:17 +11:00
Michael Hoang
a7f8613878
clan_cli: fix target_host when running clan machines install
2024-12-18 00:08:10 +11:00
Qubasa
6b784f8623
clan-cli: Rework 'clan ssh' command, improve Tor support.
2024-12-13 00:11:18 +01:00
Qubasa
b9091beff9
clan-cli: Replace log.info to machine.info if applicable
2024-12-12 15:36:17 +01:00
Qubasa
1f98df96e3
clan-cli: cmd.run now has its options extracted to a dataclass
2024-11-28 15:26:37 +01:00
a-kenji
22af137e17
pkgs/cli: Add --password flag to machines install
...
Add `--password` flag to `clan machines install`,
which allows installing through the `nixos-image` installer
manually without extra configuration.
2024-11-26 15:01:43 +01:00
Qubasa
4e6051acdc
docs: Fix nix flake check problem with diskId
2024-11-25 18:39:16 +01:00
a-kenji
5a9d58ec59
pkgs/cli: Fix generation of hardware configuration for machines install
...
Correctly use the `value` of the `enum`, which is expected by
`nixos-anywhere`.
2024-11-20 16:15:45 +01:00
Qubasa
9fc4e4c7d4
clan-cli: Fix nixos-anywhere for systems that can not be build locally
2024-11-11 14:08:12 +00:00
a-kenji
7a17edc0d6
pkgs/cli: Complete --target-host flag
2024-11-10 19:12:54 +01:00
a-kenji
23d0e2f115
pkgs/cli: Query target-host for machines install from configuration
...
Query `target-host` for `clan machines install` from the nixos
configuration (deployment.json), if possible.
Remove `TARGET_HOST` option and introduce `--target-host` command
line flag.
This brings the installation subcommand in line with the update
subcommand - improving consistency and usability.
Closes : #2309
2024-11-10 18:18:51 +01:00
Jörg Thalheim
2b05f90239
expose an option to generate hardware configuration during installation
2024-11-05 14:33:22 +01:00
Jörg Thalheim
2f3369cca5
add build-on-remote flag
2024-11-04 13:27:50 +01:00
Qubasa
5967bb347c
clan-cli: Fix bug where --target_host is getting ignored
2024-10-05 18:51:44 +02:00
Jörg Thalheim
f9a42831e4
start to name temporary directories in more places
2024-10-01 18:57:59 +02:00
DavHau
4ce3cf16bb
vars: generate vars for clan install
...
fixes #2087
2024-09-17 20:41:39 +02:00
Jörg Thalheim
483d8ce521
add SIM lint
2024-09-02 16:39:30 +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
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
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