Commit Graph

8795 Commits

Author SHA1 Message Date
Brian McGee
00a5acc033 wip 2025-07-31 12:15:14 +01:00
Brian McGee
acbc8dcfb6 wip 2025-07-31 12:12:35 +01:00
Brian McGee
283fa31649 wip 2025-07-31 12:05:24 +01:00
Brian McGee
045332ba5e wip 2025-07-31 11:28:14 +01:00
Mic92
d19ac1b9f5 Merge pull request 'machines update: refactor - simplify' (#4506) from simplify-update into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4506
2025-07-30 18:42:02 +00:00
Jörg Thalheim
57eec8edb4 bump clan-core-for-checks 2025-07-30 20:15:44 +02:00
Jörg Thalheim
e99981cfaf flake: fix privateInputs loading in nix store contexts
When clan-core is fetched via fetchgit (e.g. in tests), the devFlake/private
directory exists but cannot be loaded as a flake. This causes errors when
building test machines.

Fix by:
1. Adding a .skip-private-inputs marker file in clan-core-for-checks to
   explicitly disable private inputs in test contexts
2. Checking for this marker file before attempting to load private inputs
3. Keeping the original tryEval approach as a fallback for compatibility

This ensures tests can run without errors while preserving the ability to
load private inputs in development environments.
2025-07-30 20:15:44 +02:00
Jörg Thalheim
ae0ea37437 add update test 2025-07-30 19:13:17 +02:00
Jörg Thalheim
15557cb532 test/installation: drop out-dated comment 2025-07-30 17:58:12 +02:00
Jörg Thalheim
8f3a0b59f3 update-hardware-configuration: remove unused CLAN_FLAKE 2025-07-30 17:49:28 +02:00
Jörg Thalheim
10f731c974 container-test-driver: fix rebuild and make container-test-driver importable 2025-07-30 17:49:28 +02:00
hsjobeki
0e5c8d1a33 Merge pull request 'ui/hostfile: convert to use css modules' (#4540) from ui-progress into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4540
2025-07-30 14:34:52 +00:00
Johannes Kirschbauer
e5f8c515cd ui/hostfile: convert to use css modules 2025-07-30 16:30:46 +02:00
hsjobeki
e856d4018a Merge pull request 'ui/button: hide loader when not loading' (#4539) from ui-progress into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4539
2025-07-30 13:50:35 +00:00
Johannes Kirschbauer
17b75500fb ui/button: hide loader when not loading 2025-07-30 15:46:43 +02:00
Kenji Berthold
cf8b7f63fc Merge pull request 'pkgs/clan/lib: Move get_clan_directories to dirs' (#4538) from kenji/ke-directory-move into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4538
2025-07-30 13:17:37 +00:00
a-kenji
62c4f735ed pkgs/clan/lib: Move get_clan_directories to dirs 2025-07-30 15:07:05 +02:00
brianmcgee
cba951b2c5 Merge pull request 'feat: ui/machine-detail-pane' (#4531) from ui/machine-detail-pane into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4531
2025-07-30 12:59:27 +00:00
clan-bot
ef6f652b92 Merge pull request 'Update treefmt-nix' (#4492) from update-treefmt-nix into main 2025-07-30 12:39:59 +00:00
Johannes Kirschbauer
3d51cee4bb ui/modal: autofocus first input 2025-07-30 12:31:10 +00:00
Kenji Berthold
1791743444 Merge pull request 'pkgs/clan/lib: Add clan api to get the relative clan directory' (#4534) from kenji/ke-add-computed-directory-function into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4534
Reviewed-by: hsjobeki <hsjobeki@gmail.com>
2025-07-30 12:30:30 +00:00
gitea-actions[bot]
6208a6e857 Update treefmt-nix 2025-07-30 12:28:55 +00:00
Johannes Kirschbauer
4759cce8a4 ui/modal: autofocus first input 2025-07-30 14:27:10 +02:00
a-kenji
c7ad875e7e pkgs/clan/lib: Add clan api to get the relative clan directory
This is a Continuation of: #4519
2025-07-30 14:22:23 +02:00
hsjobeki
2ef292942f Merge pull request 'ui/button: fix loader needs explizit styling, not stylable via css leakage anymore' (#4536) from ui-progress into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4536
2025-07-30 12:20:45 +00:00
Johannes Kirschbauer
b83f5d2ffc ui/button: fix loader needs explizit styling, not stylable via css leakage anymore 2025-07-30 14:16:23 +02:00
hsjobeki
567e8b57cd Merge pull request 'ui/modal: use css modules' (#4535) from ui-progress into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4535
2025-07-30 11:55:35 +00:00
Johannes Kirschbauer
7f1a7da5c7 ui/modal: use css modules 2025-07-30 13:51:47 +02:00
hsjobeki
bb92ffb898 Merge pull request 'ui/toolbarButton: fix selected state' (#4533) from ui-progress into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4533
2025-07-30 11:45:19 +00:00
Johannes Kirschbauer
7ed62c427c ui/toolbarButton: fix selected state 2025-07-30 13:40:08 +02:00
Johannes Kirschbauer
596458d809 fix: set fixed height for SidebarSectionForm controls 2025-07-30 12:32:59 +01:00
Brian McGee
f677d96acf feat(ui): add sidebar pane for machine detail 2025-07-30 12:32:58 +01:00
Brian McGee
2c3b0f3771 feat(ui): use keyed show to re-render Machine route when route changes 2025-07-30 12:32:57 +01:00
Brian McGee
ae20230a57 feat(ui): change machineID to machineName
And no longer base64 encode it in url params or cache keys.

The term used in the API is name, so this is aligning with that.
2025-07-30 12:32:57 +01:00
Kenji Berthold
549ba9bdc2 Merge pull request 'pkgs/cli/lib: Remove obsolete clan creation function' (#4532) from kenji/ke-add-computed-directory into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4532
2025-07-30 10:52:16 +00:00
a-kenji
e167137672 pkgs/cli/lib: Remove obsolete clan creation function 2025-07-30 12:41:42 +02:00
hsjobeki
e36735119c Merge pull request 'ui/loader: transform to use css modules' (#4530) from ui-css into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4530
2025-07-30 09:07:59 +00:00
Johannes Kirschbauer
f8cdac2a63 ui/debug: remove floating debug buttons 2025-07-30 11:04:22 +02:00
Johannes Kirschbauer
ea63b4411e ui/splashscreen: transform to use css modules 2025-07-30 11:03:56 +02:00
Johannes Kirschbauer
a070fc74c1 ui/loader: transform to use css modules 2025-07-30 11:03:56 +02:00
DavHau
b30686269b machines update: fix lacks a signature by a trusted key
Despite using `root` as the ssh user, `ssh-ng` still fails with:

`error: cannot add path '/nix/store/...' because it lacks a signature by a trusted key
`

This does not happen with `ssh` instead of `ssh-ng`
2025-07-30 15:15:57 +07:00
Jörg Thalheim
1626d179a0 run_machine_update: document missing flag 2025-07-30 09:54:50 +02:00
Jörg Thalheim
6ec38c33d7 container-test-driver: fixup /etc/passwd for unprivileged user
By default /etc/passwd in container build sandboxes have two users
(root,nixbld) mapped to root. This confuses nix especially it behaves
different if it runs as root. setuid/setgid() is not enough because ssh
will break if the current uid does not exist in /etc/passwd.
Along with this we now also only run the setup for setting up the
network bridge and cgroup filesystems once and not per container.
2025-07-30 09:54:50 +02:00
Jörg Thalheim
fdfbed1a3f nixos_test_lib/setup_ssh_connection: no forward in container tests 2025-07-30 09:54:50 +02:00
Jörg Thalheim
f44b8c63c2 nixos_test_lib/prepare_test_flake: return a Path instead of str 2025-07-30 09:54:50 +02:00
Jörg Thalheim
092ac21dcd git_clan_flake_toplevel: gracefully handle permission errors
since this code is used as a default in the cli parser, we should not
crash on OSError because we wouldn't be abe to perform basic tasks such
as --help.
2025-07-30 09:54:50 +02:00
Jörg Thalheim
bd6f7b03af inline find_git_repo_root 2025-07-30 09:54:50 +02:00
Jörg Thalheim
0908a2efb8 don't resolve absolute paths for flake uri
pathlib.Path("git+file:///foo").resolve() might resolve to urls like
PosixPath('/home/joerg/work/clan/clan-core/git+file:/foo'). If those
then actually exist, this can have weird behavior. We should in general
avoid changing directories for everything except for subprocess.run.
2025-07-30 09:54:50 +02:00
Jörg Thalheim
6c84b2e100 container-test-driver: also setup network if we start a single container 2025-07-30 09:54:50 +02:00
Jörg Thalheim
de65619442 update: explain why we use sudo rather than --use-remote-sudo 2025-07-30 09:54:50 +02:00