Commit Graph

34 Commits

Author SHA1 Message Date
a71584d9d2 Added clanName argument to clan-core.lib.builClan 2023-10-27 19:20:17 +02:00
bf176ad277 api/machines: allow importing extra modules
All checks were successful
checks-impure / test (pull_request) Successful in 36s
checks / test (pull_request) Successful in 2m6s
- add top-level option `clanImports` to clanCore
- clanImports can be set and checked as any other option
- buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions
- new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports
- to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return `clanImports` as part of the config

Still missing: get list of available modules
2023-10-25 16:36:30 +01:00
588bde069f PUT api/machines/{name}/config: ensure only valid config is ever written
All checks were successful
checks-impure / test (pull_request) Successful in 1m0s
checks / test (pull_request) Successful in 2m24s
- add CLAN_MACHINE_SETTINGS_FILE variable to temporarily override the machine settings file
- do a dry-run evaluation first with the new config before persisting it.
2023-10-24 18:40:48 +01:00
fcd1d18e15 restore possibility to update all machines without having to specify them
All checks were successful
checks-impure / test (pull_request) Successful in 21s
checks / test (pull_request) Successful in 30s
2023-10-04 08:35:59 +02:00
7ca9c49163 restore clanInternals with valid nixos config 2023-09-29 19:39:35 +02:00
16b33eb0a8 add toplevel machines-json that can deploy all hosts 2023-09-28 15:23:25 +02:00
293e7f8ae6 drop unused findNixFiles function 2023-09-28 14:21:03 +02:00
85f7e2f2cd clanInternals.machines: expose information as json
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 18:42:49 +02:00
756820e4ca clanInternals.machines: invert system and machine name
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 17:26:44 +02:00
c0799ce425 jsonschema: fix eval 2023-09-27 13:08:24 +00:00
aeed648bd0 secrets: use clanInternal for crosscompiling, move sops generators to new file 2023-09-21 17:25:32 +02:00
acf1c0b87a lib jsonschema: add path 2023-09-15 12:17:07 +00:00
9f033aef55 fix quoting 2023-09-05 06:14:14 +00:00
d51dd39ae3 buildClan: fix importing machines from settings
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 9m40s
2023-09-03 15:18:29 +02:00
cfec69fec4 different fix for missing secrets 2023-09-03 14:07:31 +02:00
f1e8070412 Revert "fix machines folder not beeing present yet"
This reverts commit 14335ae576.
2023-09-03 13:53:20 +02:00
14335ae576 fix machines folder not beeing present yet
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 23s
2023-09-03 13:42:04 +02:00
0a3982d0ac fix machines folder not beeing present yet
All checks were successful
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 24s
2023-09-03 13:33:41 +02:00
5dd318e637 buildClan: machineName
All checks were successful
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 21s
2023-09-03 13:09:35 +02:00
c9bfd0a5b5 clanCore: add example options
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 21s
2023-09-02 19:15:29 +02:00
75cfd84949 buildClan: set clanCore.directory and hostPlatform 2023-09-02 18:26:45 +02:00
03808d9fbc buildClan: fix missing argument clan 2023-09-02 18:24:34 +02:00
1d496c6363 buildClan: also import clanCore module
All checks were successful
checks-impure / test (pull_request) Successful in 5s
checks / test (pull_request) Successful in 1m20s
2023-08-30 16:41:50 +02:00
72768573db drop non-existent clan modules
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 3s
2023-08-29 22:30:33 +02:00
7c21453b17 lib.buildClan: fix flake reference
All checks were successful
checks-impure / test (pull_request) Successful in 2s
checks / test (pull_request) Successful in 2s
2023-08-29 22:27:13 +02:00
d88c628f57 buildClan: also allow machines without settings
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 3s
2023-08-29 22:03:57 +02:00
a4e182debf clan template: reduce autogenerate code to a minimum 2023-08-29 13:54:06 +00:00
fb76ad45e8 webui: implement /api/machines/{name}/schema
All checks were successful
build / test (pull_request) Successful in 18s
2023-08-25 21:26:30 +02:00
4d183fff58 apply prettier to source tree
All checks were successful
build / test (pull_request) Successful in 29s
2023-08-24 14:13:02 +02:00
52d6798315 clan-config: stop using jsonschema at all for CLI
All checks were successful
build / test (pull_request) Successful in 19s
- instead use options.json coming from nixosOptionsDoc
2023-08-15 15:48:17 +02:00
cd048c2114 lan-config: handle nested options
All checks were successful
build / test (pull_request) Successful in 19s
2023-08-09 18:19:43 +02:00
7262208a4c clanLib.jsonschema: move tests from pkgs/clan-cli
All checks were successful
build / test (pull_request) Successful in 26s
2023-08-09 16:05:33 +02:00
9438a9eb5f clan-config: move jsonschema lib to clanLib 2023-08-09 16:05:33 +02:00
96067a789d move modules into nixosModules, add autoimport 2023-08-02 10:24:01 +02:00