Qubasa
8b1968cca6
clan-cli: Move Machine object to clan_lib
2025-05-22 19:11:19 +02:00
Qubasa
e14f30bdc0
clan-cli: Rename Host -> Remote move to clan_lib and mark as frozen
2025-05-22 14:08:27 +02:00
Jörg Thalheim
e275bb20bc
fix build_host not beeing applied
2025-05-22 00:22:04 +02:00
lassulus
2de3dcef15
clan-cli: clan_cli.inventory -> clan_lib.inventory
2025-05-21 12:06:38 +02:00
Johannes Kirschbauer
d3fc1725f0
docs: replace outdates reference links to 'guides' in the cli
2025-05-20 18:49:35 +02:00
lassulus
03990ef7f0
clan-cli: clan_cli.templates -> clan_lib.templates
2025-05-20 16:08:02 +02:00
lassulus
a4895a4d96
clan-cli: clan_cli.async_run -> clan_lib.async_run
2025-05-20 15:05:11 +02:00
lassulus
f2bf142e80
clan-cli: clan_cli.git -> clan_lib.git
2025-05-20 14:35:14 +02:00
lassulus
9063e4aae9
clan-cli: clan_cli.colors -> clan_lib.colors
2025-05-20 12:52:12 +02:00
lassulus
ea7da55e86
Merge pull request 'clan-cli: clan_cli.dirs -> clan_lib.dirs' ( #3706 ) from clan_lib_dirs into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3706
2025-05-20 10:34:40 +00:00
lassulus
ed89352ea1
clan-cli: clan_cli.dirs -> clan_lib.dirs
2025-05-20 12:08:30 +02:00
Jörg Thalheim
3543315f81
use absolute path to darwin-rebuild to workaround missing login shells used on macOS
2025-05-20 10:56:44 +02:00
Jörg Thalheim
cb2ccd33a4
add workaround for nix-copy on darwin
2025-05-20 10:56:44 +02:00
Jörg Thalheim
cb1703d059
drop deploy_as_root check
...
We haven't documented macOS support yet, so I don't expect many people
using it yet. Now that the pull request is merged probably most people
starting with darwin-nix will be on that commit anyway, so it's not
worth the check, given that the sudo version doesn't work very well.
2025-05-20 10:38:54 +02:00
lassulus
494705e9d3
Merge pull request 'clan-cli: clan_cli.cmd -> clan_lib.cmd' ( #3705 ) from clan_lib_cmd into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3705
2025-05-19 17:19:55 +00:00
lassulus
9a0c6f55bd
clan-cli: clan_cli.cmd -> clan_lib.cmd
2025-05-19 19:07:24 +02:00
lassulus
7ec9f20a25
Merge pull request 'fix(cli/machines/deploy): warn on local input' ( #3687 ) from tennox/clan-core:warn-local-input into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3687
Reviewed-by: lassulus <clanlol@lassul.us >
2025-05-19 16:58:33 +00:00
lassulus
cb74273da4
clan-cli: move clan_cli.nix to clan_lib.nix
2025-05-19 18:40:36 +02:00
Manu [tennox]
2f6dc9ba17
fix(cli/machines/deploy): warn on local input
...
see: https://git.clan.lol/clan/clan-core/issues/3112
2025-05-17 15:30:32 +01:00
lassulus
fa052f45bd
clan_lib: move clan_lib.flake.flake to clan_lib.flake
2025-05-16 19:28:36 +02:00
Johannes Kirschbauer
1afd5b273d
Fix(cli/machines/list): make listing machines safer
2025-05-16 18:05:49 +02:00
Johannes Kirschbauer
64e3d84cab
Refactor(cli): name set_inv_machine back to set_machine
...
We don't want to leak information about our internals
Such as 'inv' meaning 'inventory' this is not important from the outside
2025-05-16 18:05:07 +02:00
Johannes Kirschbauer
ec22a098e6
Refactor: rename api set_inv_machine parameter to 'machines,update'
2025-05-16 17:57:40 +02:00
hsjobeki
dce0ea4008
Merge pull request 'refactor: move clan_cli.error to clan_lib.error' ( #3677 ) from hsjobeki/clan-core:chores-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3677
2025-05-16 15:17:41 +00:00
Mic92
f5191b9998
Merge pull request 'installation: put use_tor option in right place' ( #3680 ) from installation into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3680
2025-05-16 14:43:17 +00:00
Jörg Thalheim
41598b8f34
machines.eval_nix: remove unused refresh parameter
2025-05-16 16:31:25 +02:00
Jörg Thalheim
13c6543a88
installation: put use_tor option in right place
...
we would always disable tor, even if enabled.
2025-05-16 16:18:25 +02:00
Johannes Kirschbauer
fe0507b47c
refactor: move clan_cli.error to clan_lib.error
2025-05-16 16:14:39 +02:00
lassulus
5423b9af41
clan_cli: move flake class to clan_lib
2025-05-16 13:38:47 +02:00
Johannes Kirschbauer
6de58478fa
Refactor: replace direct references to inventory
...
Deprecated. Inventory should be accessed via InventoryStore {read(),write(),...}
2025-05-16 11:30:41 +02:00
Qubasa
2f0114a236
clan-cli: Unify list_machines and use flake caching
2025-05-16 10:47:49 +02:00
Mic92
e4394b8dc7
Merge pull request 'Add multiline-hidden-prompt' ( #3632 ) from multiline-hidden-prompt into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3632
Reviewed-by: hsjobeki <hsjobeki@gmail.com >
Reviewed-by: lopter <louis@opter.org >
2025-05-15 08:10:34 +00:00
Jörg Thalheim
b5d132b193
do not instantiate vars_generators several times
...
We should really not have any property that has side effects i.e.
spawning processes.
2025-05-14 19:53:36 +02:00
Johannes Kirschbauer
7e0c8c3672
refactor(list/machines): use InventoryStore to interact with data"
2025-05-14 16:18:12 +02:00
Johannes Kirschbauer
45b12cdce6
Refactor(clan_lib): move nix bound classes out of the cli folder
2025-05-13 18:39:36 +02:00
Qubasa
8d80fe343d
clan-app: Fix machine update cancel task
2025-05-13 14:06:02 +02:00
Michael Hoang
b46ae13453
cli: fix machines update not outputting stdout of nixos-rebuild
2025-05-10 17:02:56 +10:00
Qubasa
01f9bb358e
clan-cli: Use machine object everywhere instead of name + flake
2025-05-09 13:13:14 +02:00
Qubasa
5f7b95ac73
clan-cli: remove useless run_no_stdout function
2025-05-08 12:30:16 +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
79a54616e5
Refactor(machine/install): don't mutate the machine class during installation
2025-05-06 17:09:37 +02:00
Johannes Kirschbauer
d8883db24d
Refactor(machine/update): cleanup dataflow and logic conditions to be intuitive
2025-05-06 16:49:32 +02:00
Mic92
ec5c87c47c
Merge pull request 'Host: actual setup ssh controlmaster' ( #3515 ) from fix-control-master into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3515
2025-05-06 11:21:05 +00:00
Jörg Thalheim
f3c673d165
only apply ssh control master to local ssh connection
2025-05-06 13:11:30 +02:00
Jörg Thalheim
5846f5d63a
Host: actual setup ssh controlmaster
...
before we were not entering the context manager
2025-05-06 13:11:30 +02:00
Johannes Kirschbauer
19dbab01d7
chore(API): cleanup remove unnused functions
2025-05-06 12:29:11 +02:00
Jörg Thalheim
28227e8b0a
fix build_host set if it doesn't exist
2025-05-06 09:56:58 +02:00