Jörg Thalheim
e0ebea7eb8
update/upload_sources remove ssh_control_master again from upload_sources
2025-05-28 16:21:30 +02:00
Jörg Thalheim
f06313d5b2
add sudo_askpass_proxy
2025-05-28 16:21:30 +02:00
Qubasa
0ca7600439
clan-cli: Move Machine object to clan_lib
2025-05-22 19:11:19 +02:00
Qubasa
cff5d61f26
clan-cli: Rename Host -> Remote move to clan_lib and mark as frozen
2025-05-22 14:08:27 +02:00
Jörg Thalheim
0a22218026
fix build_host not beeing applied
2025-05-22 00:22:04 +02:00
lassulus
00a439999b
clan-cli: clan_cli.async_run -> clan_lib.async_run
2025-05-20 15:05:11 +02:00
lassulus
33f3f01e56
clan-cli: clan_cli.colors -> clan_lib.colors
2025-05-20 12:52:12 +02:00
Jörg Thalheim
56cc7977f3
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
5195a049a1
add workaround for nix-copy on darwin
2025-05-20 10:56:44 +02:00
Jörg Thalheim
494ea192e7
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
dc4aae643a
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
1df5dfe6d3
clan-cli: clan_cli.cmd -> clan_lib.cmd
2025-05-19 19:07:24 +02:00
lassulus
0f6e5499f6
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
b10682c7f7
clan-cli: move clan_cli.nix to clan_lib.nix
2025-05-19 18:40:36 +02:00
Manu [tennox]
3986200c74
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
Johannes Kirschbauer
f210b2f9a6
refactor: move clan_cli.error to clan_lib.error
2025-05-16 16:14:39 +02:00
Qubasa
daffc95c96
clan-app: Fix machine update cancel task
2025-05-13 14:06:02 +02:00
Michael Hoang
8a755fff8c
cli: fix machines update not outputting stdout of nixos-rebuild
2025-05-10 17:02:56 +10:00
Qubasa
2682581c09
clan-cli: Use machine object everywhere instead of name + flake
2025-05-09 13:13:14 +02:00
Johannes Kirschbauer
7371085c05
Refactor(machine/update): cleanup dataflow and logic conditions to be intuitive
2025-05-06 16:49:32 +02:00
Jörg Thalheim
ec76d5f8e5
only apply ssh control master to local ssh connection
2025-05-06 13:11:30 +02:00
Jörg Thalheim
cd23c9ff41
fix incorrect target host when build host is set
2025-05-06 09:26:59 +02:00
Jörg Thalheim
b01691cb64
bind ssh controlmaster to live time of CLI
2025-05-04 16:28:14 +02:00
Jörg Thalheim
6539a6a24f
Revert "Merge pull request 'Fix deploying with sudo + password' ( #3470 ) from target-host into main"
...
This reverts commit 8a849eb90f , reversing
changes made to 3b5c22ebcf .
2025-05-04 13:37:39 +02:00
Jörg Thalheim
7abb8bb662
update: fix sudo password prompt
2025-05-04 10:51:49 +02:00
pinpox
a99c832ed9
Set terminal on nix flake update/archive
...
When using resident SSH-keys (-sk), e.g. from a Yubikey that require a
Pin, a terminal is needed to be able to enter it during deployment.
2025-05-02 15:41:29 +02:00
Jörg Thalheim
ea1c8b9503
correct capitilization for targetHost in error message
2025-05-01 15:11:05 +02:00
DavHau
8a4fe1405a
gui: make update machine work
...
Also fix error when age plugins not defined
2025-04-30 15:28:49 +07:00
Johannes Kirschbauer
acbe619883
Refactor(clan_lib): move clan_cli.api into clan_lib.api
2025-04-26 19:51:35 +02:00
Michael Hoang
de12036630
cli: support updating nix-darwin machines
2025-04-22 23:39:47 +10:00
Michael Hoang
b5901d5577
cli: only use sudo when deploying locally
2025-04-22 23:14:03 +10:00
Michael Hoang
a0117c51c1
cli: use sudo consistently when running nixos-rebuild switch
2025-04-22 23:14:03 +10:00
Michael Hoang
2bbf4b168a
Back out "cli: don't update macOS machines"
...
This backs out commit 72ed0e258a .
2025-04-22 23:14:03 +10:00
Michael Hoang
99be2d0019
machines: fix nixos-rebuild not getting retried
2025-04-15 16:16:03 +02:00
lassulus
db9097d5d0
clan_cli machines update: cache values for faster eval
2025-04-14 14:28:59 +02:00
Michael Hoang
54e3414cef
machines: minor refactor of update
2025-04-13 18:14:17 +02:00
Michael Hoang
72ed0e258a
cli: don't update macOS machines
2025-04-08 08:53:29 +02:00
Michael Hoang
2db14e0ffa
cli: machines update [MACHINE] -> machines update [MACHINES]
2025-04-03 00:25:51 +09:00
Qubasa
6f13b3a29c
clan-cli: Fix deployment as non root edgecase
2025-03-31 20:25:05 +02:00
Qubasa
8e2005f38c
clan-cli: Fix deployment as non root with a buildHost set
2025-03-28 18:47:36 +01:00
RTUnreal
351ce1414a
clan_cli: fix support for non-root deployment user
2025-03-26 18:37:31 +01:00
Jörg Thalheim
1f3bd09245
fix regex for detecting git+file inputs
2025-02-20 10:00:04 +07:00
Pablo Ovelleiro Corral
b0e7de3c8b
Create directory
2025-02-16 17:08:54 +00:00
Pablo Ovelleiro Corral
014aec9531
Fix output when rebuilding
2025-02-16 17:08:54 +00:00
lassulus
32748c14f4
clan_cli machines: use Flake instead of FlakeId
2025-02-07 06:26:09 +01:00
Jörg Thalheim
62c6da4c32
clan/update: deploy_machine -> deploy_machines
2025-01-21 15:20:38 +01:00
Jörg Thalheim
c5a72f67c3
use nix flake archive in clan machines update for git+file flake inputs
2025-01-20 10:49:25 +01:00
DavHau
b451d7c3ff
machines update: remove unecessary special handling for non-path flakes
2024-12-20 19:23:25 +07:00
Qubasa
ec54a6a978
clan-cli: Replace log.info to machine.info if applicable
2024-12-12 15:36:17 +01:00
Qubasa
343305c519
clan-cli: Fix missing error propagation in deploy
2024-12-10 00:03:33 +01:00