Commit Graph

862 Commits

Author SHA1 Message Date
DavHau
11fb73432b api/flake/add: init
Adds an endpoint to memoize clans.
clan flakes can be added to the history either via the endpoint or by executing `clan flakes add`
2023-11-17 17:05:15 +07:00
Jörg Thalheim
d2b51195da meshname: fix mx records and support for reverse-ips 2023-11-16 17:32:05 +01:00
Jörg Thalheim
44fa268205 secrets/generate-private-key: just create parent opportunistically 2023-11-16 13:19:12 +01:00
kenji
f88a17ad34 clan_cli: create key directory 2023-11-15 23:15:12 +01:00
lassulus
d8633dd29d machines.update: remove redundant flake argument 2023-11-15 21:57:08 +01:00
clan-bot
44765d6927 Merge pull request 'bump nix-unit' (#517) from joerg-ci into main 2023-11-15 15:51:47 +00:00
Jörg Thalheim
5d36878206 drop schemathesis
This creates conflicting python packages when included
2023-11-15 16:48:46 +01:00
Jörg Thalheim
7fef9d4987 bump nix-unit 2023-11-15 16:39:48 +01:00
clan-bot
0b07fe9b03 Merge pull request 'pending-reviews: add bullet points to prs' (#516) from Mic92-sops-nix into main 2023-11-15 15:36:58 +00:00
Jörg Thalheim
3551df89ea pending-reviews: add bullet points to prs 2023-11-15 16:34:21 +01:00
lassulus
f2d6725d52 disable ui 2023-11-15 16:28:09 +01:00
lassulus
082d628497 clan_cli: flake_name -> flake_dir 2023-11-15 16:23:28 +01:00
clan-bot
426be3dd37 Merge pull request 'add pending-reviews script' (#514) from Mic92-sops-nix into main 2023-11-15 12:51:20 +00:00
Jörg Thalheim
a25c597f92 add pending-reviews script 2023-11-15 13:48:52 +01:00
clan-bot
fd4765e4e2 Merge pull request 'tea-create-pr: automatic needs-review label' (#513) from Mic92-sops-nix into main 2023-11-15 12:00:35 +00:00
Jörg Thalheim
193d9d6919 tea-create-pr: automatic needs-review label 2023-11-15 12:55:30 +01:00
Qubasa
635de29d6a Fix incorrect machine name for shell.nix 2023-11-15 11:29:07 +01:00
Jörg Thalheim
15df81b45e drop verbose command logging in task manager 2023-11-15 07:21:26 +01:00
Jörg Thalheim
50ecdebdd3 pytest: add missing with-core marker 2023-11-15 07:21:26 +01:00
Jörg Thalheim
4514b09f81 also regenerate secrets if a fact is missing 2023-11-14 17:07:58 +01:00
Jörg Thalheim
f65bd8aa85 fix exception when file does not exist
fixes https://git.clan.lol/clan/clan-core/issues/488
2023-11-14 16:57:05 +01:00
Jörg Thalheim
8b42d0207a add cors headers in exception handler in cors 2023-11-14 16:39:20 +01:00
Jörg Thalheim
652580d57d only enable corsmiddleware when in dev mode and allow all origins 2023-11-14 15:32:03 +01:00
clan-bot
0f464838f6 Merge pull request 'add module for meshnamed' (#499) from Mic92-sops-nix into main 2023-11-14 12:01:26 +00:00
Jörg Thalheim
7fd0f1fbb7 add module for meshnamed 2023-11-14 12:58:15 +01:00
DavHau
9f716741ef api/machines: add test ensuring empty config is valid 2023-11-13 21:56:02 +07:00
DavHau
d755048dc2 api/machines: allow config verification on imaginary machines
Machines do not need to exist in order to verify their configuration.

This allows verifying a config before creating an actual machine with it.
2023-11-13 21:24:05 +07:00
DavHau
33944cf74e api/machines: verify config by evaluating the .vm output
This fixes the problem where fileSystems were missing, or boot.loader was not set.

SInce we want VMs anyways for now, this strategy aligns well
2023-11-13 20:50:11 +07:00
ui-asset-bot
74451be048 update ui-assets.nix 2023-11-13 13:31:33 +00:00
DavHau
2fafc9a38b api/machines: init put_machine replacing create_machine and set_machine_config
This allows creating and configuring a machine in one single step.
2023-11-13 20:25:52 +07:00
DavHau
0dae746bed task_manager.py: fix index out of range bug 2023-11-13 20:21:51 +07:00
DavHau
52af144135 commit_file: fix diff computation
previously computed diff over all files
2023-11-13 19:59:20 +07:00
DavHau
3745709449 chore: remove unnecessary comment 2023-11-12 07:57:48 +07:00
DavHau
1e2e37880c api/machines: ensure name is valid hostname 2023-11-12 07:57:48 +07:00
ui-asset-bot
0faeca7ad4 update ui-assets.nix 2023-11-11 14:30:55 +00:00
Johannes Kirschbauer
eab4a41734 fix type errors 2023-11-11 15:27:57 +01:00
Johannes Kirschbauer
76328c2196 merge main 2023-11-11 15:11:06 +01:00
Johannes Kirschbauer
e3750db235 clean up join workflow 2023-11-11 15:01:18 +01:00
Johannes Kirschbauer
ebed5ab618 add & configure machine: added formular integration 2023-11-11 10:08:39 +01:00
Jörg Thalheim
706e7970f4 vms/create: drop extra flake argument and make it work with local flakes 2023-11-10 13:43:14 +01:00
Jörg Thalheim
6c2daab266 rename luispkgs to nixpkgs-for-deal 2023-11-10 13:14:06 +01:00
Jörg Thalheim
ba305a946e dirs: opportuniscally create directories 2023-11-10 12:55:46 +01:00
Jörg Thalheim
2924e3e912 drop unused clan_data_dir 2023-11-10 12:55:46 +01:00
Jörg Thalheim
48d7968cf9 move flake configuration to .config/clan/flakes rather than $XDG_DATA_DIRS 2023-11-10 12:50:51 +01:00
Jörg Thalheim
cb2145be65 drop unused ClanDataPath 2023-11-10 12:46:15 +01:00
Jörg Thalheim
6ef5dab65d breakpoint_shell: make work_dir optional 2023-11-10 12:40:51 +01:00
Jörg Thalheim
2e939bedd6 moving deal dependencies to tests only 2023-11-10 12:39:24 +01:00
clan-bot
aa15bebb0c Merge pull request 'zerotier: allow to persist zerotier identities/ips/meshnames for non-controller' (#482) from zerotier into main 2023-11-10 10:59:48 +00:00
Jörg Thalheim
e436fef13d allow to persist zerotier identities/ips/meshnames for non-controller 2023-11-10 11:56:54 +01:00
DavHau
170d29a15a api/schema: return list of missing modules 2023-11-10 15:07:15 +07:00