Jörg Thalheim
d2814efcde
update: sort precached vars
2025-08-11 17:18:01 +02:00
hsjobeki
96fe387399
Merge pull request 'api: init notification queue' ( #4678 ) from ui-notify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4678
2025-08-11 15:13:42 +00:00
DavHau
ee8e44d255
vars/generators: refactor - identify generators by name + machine
...
This brings us one step closer towards re-generating over multiple machines reliably
2025-08-11 21:02:55 +07:00
Johannes Kirschbauer
54797dd5f5
ui/install: hook up notification bus
2025-08-11 15:30:55 +02:00
Johannes Kirschbauer
bb6fab1168
api: init notification queue
2025-08-11 15:24:41 +02:00
Jörg Thalheim
5ab3a164c8
install: precache vars
2025-08-11 11:51:06 +02:00
DavHau
073027f7c6
vars/generate: refactor - mark private as private
2025-08-11 11:46:25 +07:00
DavHau
d0374c0d7c
vars/keygen: add --no-interactive flags
...
This is useful to force on-interactive mode with automatic key selection. In unit tests this is necessary. When debugging a test on a real terminal interactive mode is not desired
2025-08-11 11:29:25 +07:00
Johannes Kirschbauer
31d3997358
Secrets: fix tests
2025-08-10 13:06:42 +02:00
Johannes Kirschbauer
62b748624d
Secrets: allow to generate additional keys with --new
2025-08-10 13:04:34 +02:00
Johannes Kirschbauer
29f440a482
Sops: generate key should always 'generate' a key pair when beeing called
...
Check if you want to generate a new key as a caller
2025-08-10 13:04:34 +02:00
Johannes Kirschbauer
454b09a67e
Vars: remove unused return
2025-08-10 00:19:08 +02:00
Johannes Kirschbauer
787781c2ad
Vars: remove spurious 'fake_prompt' with mocked method
2025-08-10 00:18:01 +02:00
hsjobeki
469c6ba42d
Merge pull request 'UI: Resolve some more install blockers' ( #4657 ) from feat-ui into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4657
2025-08-09 18:12:35 +00:00
Johannes Kirschbauer
91646b323a
API/generators: adjust filtering to match cli logic
2025-08-09 19:58:23 +02:00
Johannes Kirschbauer
d007b0f1b3
API/generators: expose display attribute of prompts
2025-08-09 19:56:23 +02:00
Johannes Kirschbauer
034982bff2
API/modules: init create_service_instance endpoint
2025-08-09 19:56:04 +02:00
a-kenji
e5bea3d49a
pkgs/clan/lib(directory): Add API function to query the configured directory
...
Similar to the implementation in #4526
Co-authored-by: Mayeu <m@mayeu.me >
2025-08-09 15:39:43 +02:00
Kenji Berthold
29ec9dbe26
Merge pull request 'pkgs/clan/lib: Handle basecase of directory functionality' ( #4654 ) from kenji/ke-add-directory into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4654
2025-08-09 11:12:23 +00:00
a-kenji
a1874c940e
pkgs/cli/lib: Fix api test
2025-08-09 12:48:13 +02:00
a-kenji
d115705cb4
pkgs/clan/lib/directory: Improve error message formatting
2025-08-09 12:32:18 +02:00
a-kenji
eceb6eb999
pkgs/clan/lib: Handle basecase of directory functionality
2025-08-09 12:30:28 +02:00
hsjobeki
d25cace522
Merge pull request 'Host: convert to proctocol to avoid forced inheritance' ( #4647 ) from host-protocol into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4647
2025-08-09 09:29:09 +00:00
Johannes Kirschbauer
628e45293e
Update: avoid mutating and shadowing arguments
2025-08-09 11:18:50 +02:00
a-kenji
b6bccd218a
templates(flake-parts-minimal): Fix erroneous removal
2025-08-09 00:56:21 +02:00
Johannes Kirschbauer
1df9b6e97d
Remote: set default for commance_prefix
2025-08-08 22:48:19 +02:00
Johannes Kirschbauer
58fa7ac32b
Host: convert to proctocol to avoid forced inheritance
2025-08-08 22:33:05 +02:00
hsjobeki
110d1d4921
Merge pull request 'UI/Install workflow: integrate api until hardware report' ( #4646 ) from ui-more into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4646
2025-08-08 19:23:00 +00:00
Johannes Kirschbauer
1eb567682c
API/ts: fix empty object is not nullish
2025-08-08 21:03:03 +02:00
Johannes Kirschbauer
3cf8f605d5
flash: default keymap and lang
2025-08-08 20:56:45 +02:00
Johannes Kirschbauer
cc07e0ea44
update hw config: add nixos-facter as default
2025-08-08 20:56:15 +02:00
Johannes Kirschbauer
ccb9340478
Host: add None as default to command_prefix
2025-08-08 20:55:54 +02:00
Jeremy Fleischman
1129862293
machines update: support --target-host localhost
...
This is basically
<af7ce9b8ed >,
but with support for deploying locally.
This failed to install secrets to `/var/lib/sops-nix`. That's because
our `LocalHost` didn't have support for sudo yet. I fixed that.
2025-08-08 12:42:26 +00:00
hsjobeki
c0f2bcf751
Merge pull request 'API/Machine: refactor api returns readonly' ( #4627 ) from readonly into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4627
2025-08-08 08:54:49 +00:00
Johannes Kirschbauer
20c23fa64b
API/Machine: refactor api returns readonly
2025-08-08 10:44:32 +02:00
clan-bot
10e43a8884
Merge pull request 'Update nixpkgs' ( #4443 ) from update-nixpkgs into main
2025-08-08 05:57:37 +00:00
Michael Hoang
a71a5880c1
treewide: reformat
2025-08-08 15:28:37 +10:00
Michael Hoang
2f2f3b6898
cli: fix missing newline in error message
2025-08-08 15:19:19 +10:00
hsjobeki
d0ebc75135
Merge pull request 'ui/install: hook up stepper store and api' ( #4626 ) from install-ui into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4626
2025-08-07 14:21:21 +00:00
Johannes Kirschbauer
40503306d1
cli/flash: fixup types
2025-08-07 16:09:36 +02:00
Johannes Kirschbauer
915178765b
Vars: rename classmethod to get_machine_generators
2025-08-07 15:31:17 +02:00
Johannes Kirschbauer
4536a5b4f5
clan/flash: provide defaults for verbose flash options
2025-08-07 13:46:07 +02:00
Johannes Kirschbauer
a9cfda9acb
dirs: add local path to clan_core flake in dirs
2025-08-07 13:46:07 +02:00
DavHau
8bafbcb295
machines update: use 'localhost' for local build
2025-08-06 19:06:20 +07:00
Mic92
273c83ec27
Merge pull request 'update/flake-upload: use ssh-ng:// for nix copy' ( #4597 ) from local-build into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4597
2025-08-05 20:47:23 +00:00
Jörg Thalheim
44dcfa7844
rename --fetch-local to --upload-inputs
2025-08-05 19:31:29 +02:00
Jörg Thalheim
98f685f3ca
update/flake-upload: set correct remote-program for macOS targets
2025-08-05 19:31:29 +02:00
Mic92
3fe65f1f12
Merge pull request 'machines update: support local build' ( #4515 ) from local-build into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4515
2025-08-05 11:28:50 +00:00
Jörg Thalheim
6bb998f9dd
update/flake-upload: use ssh-ng:// for nix copy
...
I had concurrency issues with `nix copy` and the ssh:// protocol when
using a machine both as the build host/target host (for different
machines), where it make the result path partially available to a
different update command thread.
2025-08-05 13:26:34 +02:00
DavHau
af7ce9b8ed
machines update: support local build
...
Now the user can pass `--build-host local`, to select the local machine as a build host, in which case no ssh is used.
This means the admin machine does not necessarily have ssh set up to itself, which was confusing for many users.
Also this makes it easier to re-use a well configured nix remote build setup which is only available on the local machine. Eg if `--build-host local` nix' defaults for remote builds on that machine will be utilized.
2025-08-05 13:16:59 +02:00