Johannes Kirschbauer
fe0507b47c
refactor: move clan_cli.error to clan_lib.error
2025-05-16 16:14:39 +02:00
Qubasa
01f9bb358e
clan-cli: Use machine object everywhere instead of name + flake
2025-05-09 13:13:14 +02:00
Qubasa
89decdaf7e
clan-cli: Refactor the API to use the Flake object
2025-05-07 16:43:50 +00:00
Jörg Thalheim
1037bd115b
Revert "Merge pull request 'clan-cli: Refactor the API to use the Flake object' ( #3531 ) from Qubasa/clan-core:replace_machine_name_with_machine_obj into main"
...
This reverts commit c09618b323 , reversing
changes made to 45b2539455 .
2025-05-07 15:24:57 +02:00
Qubasa
a6a69bb09b
clan-cli: Refactor the API to use the Flake object
2025-05-07 13:12:48 +02:00
Johannes Kirschbauer
f0d42c839b
Refactor(machine/class): use frozen dataclass for class 'machine'
2025-05-06 17:12:52 +02:00
Johannes Kirschbauer
19dbab01d7
chore(API): cleanup remove unnused functions
2025-05-06 12:29:11 +02:00
Jörg Thalheim
be79d75c08
bind ssh controlmaster to live time of CLI
2025-05-04 16:28:14 +02:00
Jörg Thalheim
d98c01bc3a
update_hardware_config: use host.run rather than adhoc ssh command
2025-05-04 10:30:46 +02:00
Johannes Kirschbauer
f6628ec1a9
Refactor(clan_lib): move clan_cli.api into clan_lib.api
2025-04-26 19:51:35 +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
Jörg Thalheim
4d4882ac7b
update_hardware_config: migrate from nix_shell to run_cmd
2025-04-16 19:32:40 +02:00
Jörg Thalheim
326633d1b8
hardware: only include sshpass if we are actually using it.
2025-04-09 09:52:56 +00:00
Qubasa
0afbf9dd45
checks/installation-without-system: modify to install through normal user instead of root
2025-03-26 18:37:31 +01:00
Qubasa
e3651d0ae0
clan-clI: Improve error message of clan update-hardware-config on non found nixos-facter
2025-02-18 17:40:27 +07:00
lassulus
2a8f40e91a
clan_cli machines: use Flake instead of FlakeId
2025-02-07 06:26:09 +01:00
Jörg Thalheim
cb8ca601e2
switch to nixos-facter for hardware-config
2025-01-15 13:59:49 +00:00
Qubasa
b9091beff9
clan-cli: Replace log.info to machine.info if applicable
2024-12-12 15:36:17 +01:00
Jörg Thalheim
bbb2aca5cb
rename run_no_output to run_no_stdout
...
we want stderr for some nix commands.
2024-12-03 17:15:28 +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
e0cebd005a
pkgs/cli: Fix dynamic completions for update-hardware-config and it's flags
...
Fix dynamic completions for `update-hardware-config` and it's flags.
Now `update-hardware-config` correctly suggests machines as well as for
example `--backend` suggests correctly their respective flags.
2024-11-08 14:23:11 +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
86d8992046
generate-hardware-config: remove backup file after we are done
2024-11-04 15:05:08 +01:00
DavHau
08fb34aa01
cli: set needs_user_terminal for all ssh commands
2024-10-23 19:40:50 +07:00
Qubasa
2838e468a6
clan-cli: Fix bug where --host-key-check is not applied everywhere
2024-10-08 00:25:15 +00:00
Qubasa
5967bb347c
clan-cli: Fix bug where --target_host is getting ignored
2024-10-05 18:51:44 +02:00
Jörg Thalheim
62af2bab55
fix broken eval check when nixpkgs.pkgs nixos option is used
2024-09-29 16:59:02 +02:00
Jörg Thalheim
9cf2bd4f6e
make default hardware report commit message nicer
2024-09-29 16:59:02 +02:00
Jörg Thalheim
bf7246104d
allow to overwrite hardware configuration
...
now that we call it "update" hardware configurration and we are heading
towards facter anyway, we don't need all the force overide logic. Just
allow this to be overwritten by default.
2024-09-29 16:59:02 +02:00
Jörg Thalheim
b4652539a5
wrap hardware generate arguments into an object
2024-09-29 16:59:02 +02:00
Jörg Thalheim
7816a3e639
don't expose polymorphic api
2024-09-29 16:21:53 +02:00
Jörg Thalheim
372a5f3907
remove unused location from ClanError
2024-09-29 16:21:53 +02:00
Jörg Thalheim
07e031f256
expose nixos-facter in cli
2024-09-29 16:21:53 +02:00
Jörg Thalheim
d0ed48284b
use packaged nixos-facter in generate_hardware_info
2024-09-24 11:38:33 +02:00
Jörg Thalheim
8a8b473236
rename hw-generate to update-hardware-config
2024-09-20 13:42:18 +02:00
Johannes Kirschbauer
dc57c3d948
CLI: api.register type preservation
2024-09-16 12:52:28 +00: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
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
a0307a29b8
CLI: add option to generate facter.json
2024-08-26 09:05:01 +02:00
Jörg Thalheim
de34e058f6
hw-generate: don't load nixos-install-tools on local machine
...
We only need this on the target. Our installer have it already.
2024-08-24 12:07:22 +02:00
Jörg Thalheim
7ba0966da3
hw-generate: fix args
2024-08-24 12:07:22 +02:00
Johannes Kirschbauer
1e766feb40
API: prepare hw_generate for facter
2024-08-23 11:13:06 +02:00
Johannes Kirschbauer
b0d57cbdf5
API: hw_generate commit generated config
2024-08-22 16:11:08 +02:00
Johannes Kirschbauer
2d119ae750
Clan-app: generate hw report
2024-08-22 15:57:00 +02:00
Jörg Thalheim
30bbb142e2
Merge remote-tracking branch 'origin/main' into rework-installation
2024-08-21 13:38:04 +02:00
Johannes Kirschbauer
3f46d37b67
Clan-app: generate hw spec via ssh
2024-08-14 16:28:43 +02:00
Johannes Kirschbauer
68c65fb3fd
API: add keyfile arg
2024-08-13 19:29:28 +02:00