Commit Graph

164 Commits

Author SHA1 Message Date
Jörg Thalheim
dc51ca5803 factor out deployment address parsing into a function 2023-09-21 17:22:20 +02:00
Jörg Thalheim
486ff4e7f4 age: generate private and public key in one go 2023-09-21 17:22:20 +02:00
DavHau
6a359c0a2f clan-cli: add git.commit_file() to auto commit files if inside a git
- commit only if inside a git repo
- commit only the specified file and nothing else
- auto-generate commit message if not specified
2023-09-21 14:07:54 +02:00
clan-bot
4a0949f5dc Merge pull request 'clan-cli/update: also use correct flake attr for generating secret' (#307) from Mic92-deploy-fix into main 2023-09-19 13:32:18 +00:00
Jörg Thalheim
3cb916d50f clan-cli/update: also use correct flake attr for generating secret 2023-09-19 15:20:11 +02:00
DavHau
c11f73c4d0 clan config: fix settings file location 2023-09-19 15:12:29 +02:00
DavHau
9b6fafcb2d clan config: re-enable clan config 2023-09-19 15:12:29 +02:00
Jörg Thalheim
2931b08b46 clan-cli/update: use correct flake attr when deploying 2023-09-19 14:19:48 +02:00
clan-bot
90718da5b4 Merge pull request 'use experimental flags everywhere' (#298) from Mic92-vm-api into main 2023-09-19 11:16:30 +00:00
Jörg Thalheim
f6a7e42e38 cli: rename admin create to create 2023-09-19 13:12:10 +02:00
Jörg Thalheim
a65413c98e use experimental flags everywhere 2023-09-19 13:12:10 +02:00
Johannes Kirschbauer
18714d6657 reformat 2023-09-16 16:28:36 +02:00
Johannes Kirschbauer
1bcff16b66 add join clan page 2023-09-16 16:21:33 +02:00
Jörg Thalheim
a29f301f84 add vms 2023-09-15 14:02:40 +00:00
Jörg Thalheim
8a96254100 nix_build: add experimental flags 2023-09-15 14:30:17 +02:00
lassulus
8d29d0e69c clan-cli: get deploymentAddress from clan.networking 2023-09-15 12:17:07 +00:00
lassulus
0132abc547 secrets: use CLAN_DIR instead of clanCore.clanDir for fact storage 2023-09-15 12:17:07 +00:00
lassulus
a59e8478fa clan-cli nix_build_machine: don't create result link 2023-09-15 12:17:07 +00:00
lassulus
c5786614bf clan-cli secrets: deploy -> upload 2023-09-15 12:17:07 +00:00
lassulus
55fc055549 clan_cli/nix: convert path to string 2023-09-15 12:17:07 +00:00
lassulus
c487280ba9 clan-cli machines update: generate and deploy secrets 2023-09-15 12:17:07 +00:00
lassulus
0e3f8bb3f9 clan-cli nix_build_machine: cast flake_url to str 2023-09-15 12:17:07 +00:00
lassulus
23c979f8db secrets deploy/generate: use nix_build_machine 2023-09-15 12:17:07 +00:00
Jörg Thalheim
3b0701f275 deploy: use nix-flake-archive instead of rsync to upload 2023-09-15 12:17:07 +00:00
lassulus
ac13c5b76b clan-cli secrets: add deploy subcommand 2023-09-15 12:17:07 +00:00
lassulus
798e85ee8a clan secrets generate: use get_clan_flake_toplevel 2023-09-15 12:17:07 +00:00
Jörg Thalheim
9b7b6996d6 nix_eval: add --json by default 2023-09-15 13:50:31 +02:00
Jörg Thalheim
2d934d527a update: use run_local command to print executed command 2023-09-14 11:20:45 +02:00
Jörg Thalheim
b97db58316 deploy: use nix-flake-archive instead of rsync to upload 2023-09-13 20:33:53 +02:00
Jörg Thalheim
3d071396d0 nix_build_machine: escape json 2023-09-13 16:40:26 +02:00
Jörg Thalheim
825caeb63a add nix_build_machine function 2023-09-13 16:01:43 +02:00
Jörg Thalheim
17af763ad1 add edit flag to secret cli 2023-09-13 10:52:03 +02:00
Jörg Thalheim
62e5c66867 secrets cli: hint that group/user/machine flags can be repeated 2023-09-07 13:06:31 +02:00
Jörg Thalheim
c3ccf68007 only list valid secrets/users/machines
Git often leaves empty directories behind
2023-09-07 12:48:34 +02:00
Jörg Thalheim
ae3283a762 clan/secrets: fix if user/machine directory does not contain a key.json 2023-09-07 12:30:29 +02:00
Jörg Thalheim
e6762d8b3f sops: add explicit commands to generate secrets 2023-09-07 11:41:20 +02:00
Jörg Thalheim
3bdd3af248 cli: fix nixpkgs unfree import 2023-09-06 17:37:41 +02:00
Jörg Thalheim
35c5f248d1 cli/deps_flake: resolve symlink prior to execution 2023-09-06 17:05:21 +02:00
DavHau
e7dcc0d260 clan-cli: fix nix_shell --inputs from 2023-09-06 16:13:27 +02:00
DavHau
df10ca6ece clan-cli: fix nix_shell 2023-09-06 15:18:22 +02:00
clan-bot
cd8cd62894 Merge pull request 'clan-cli: use dependency flake instead of registry' (#250) from DavHau-deps into main 2023-09-06 12:50:16 +00:00
DavHau
fcbc3ec899 clan-cli: use dependency flake instead of registry 2023-09-06 14:47:28 +02:00
Jörg Thalheim
bef27a2c67 fix cors headers in development 2023-09-06 14:03:21 +02:00
Jörg Thalheim
949b72bd0b actual implement secret rename function 2023-09-03 11:03:14 +02:00
Jörg Thalheim
6c7c9b9540 secrets/sops-import: check correct secret for conflicts 2023-09-03 08:43:40 +02:00
clan-bot
148c292ea9 Merge pull request 'secrets/sops-import: check for key.json to exist' (#237) from Mic92-secret-fix into main 2023-09-03 06:39:53 +00:00
Jörg Thalheim
e079627f0f secrets/sops-import: check for key.json to exist 2023-09-03 08:37:56 +02:00
DavHau
a56073b051 machines delete: fix - delete all existing files 2023-09-02 18:37:40 +02:00
DavHau
2a11b1c5d1 machines api: always create empty settings.json 2023-09-02 18:29:12 +02:00
DavHau
a1d825d0a0 clan-config: fix: read options from nixosConfigurations instead of nixosModules 2023-09-02 16:35:59 +02:00