Johannes Kirschbauer
d38983c784
Create machine: init view with api
2024-07-24 10:34:11 +02:00
Johannes Kirschbauer
f787acdaa4
CLI: fix flakeId url interpretation
2024-07-24 10:34:11 +02:00
Johannes Kirschbauer
580cc12671
cli: Disable pre-commit hooks for cli commands
2024-07-24 10:34:10 +02:00
Johannes Kirschbauer
679fd914e0
Inventory: add load_eval method
2024-07-24 10:34:10 +02:00
clan-bot
bb9da50d45
Merge pull request 'clan-vm-manager: Fix waypipe regression in nix code' ( #1793 ) from Qubasa/clan-core:Qubasa-main into main
2024-07-23 11:24:05 +00:00
Qubasa
c6a0cd9398
clan-vm-manager: Fix waypipe regression in nix code
2024-07-23 13:20:02 +02:00
DavHau
00f7a6300b
clan-cli/secrets: refactor: rename secret -> secret_path
2024-07-23 18:18:32 +07:00
DavHau
5bd20fcf2c
vars: add support for password-store
2024-07-23 14:54:18 +07:00
DavHau
9ff076aec1
vars: implement prompts
2024-07-22 20:40:12 +07:00
Jörg Thalheim
a1a36606e4
cleanup deprecated facts options
2024-07-21 18:11:30 +02:00
Jörg Thalheim
3d12aabf0c
test_flake_with_core_and_pass: don't use deprecated options
2024-07-21 18:03:51 +02:00
Jörg Thalheim
824c5d3f80
flake/create: fix "directory does not exist" error
2024-07-21 16:00:35 +02:00
Jörg Thalheim
563ead4652
only set git author / email when no one is set globally
2024-07-21 16:00:35 +02:00
Qubasa
728f8f5758
clan-vm-manager: Restore to known good version
2024-07-19 22:07:34 +02:00
Johannes Kirschbauer
6d441a1494
Classgen: make type order predictable
2024-07-19 18:49:16 +02:00
Johannes Kirschbauer
5c18f67fed
Classgen: refactor functions
2024-07-19 18:20:22 +02:00
Johannes Kirschbauer
3435db68c8
Classgen: add error reporting and combine common classes
2024-07-19 13:03:38 +02:00
Johannes Kirschbauer
6d49f5c926
Commit generated code otherwise CI cannot check types
2024-07-19 09:52:14 +02:00
Johannes Kirschbauer
07965598f5
Classgen: add mapped keys and more stuff
2024-07-18 21:58:36 +02:00
Johannes Kirschbauer
7e84eaa4b3
Init: Autogenerate classes from nix interfaces
2024-07-18 19:14:12 +02:00
Qubasa
8ad7c2b89a
clan: Fix treefmt not applying mypy lints on clan_cli and clan_app
2024-07-17 21:50:52 +02:00
Jörg Thalheim
0d6e2539e3
Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"
...
This reverts commit 37e6ca7a30 .
2024-07-17 14:04:49 +02:00
clan-bot
f317495e80
Merge pull request 'Inventory: init: deployment info for machines' ( #1767 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-07-17 10:18:50 +00:00
Johannes Kirschbauer
076a5cad89
Unit tests: fix template test - override the input in the flake template
2024-07-17 12:06:23 +02:00
DavHau
117843021e
vars: implement dependencies
2024-07-17 16:42:16 +07:00
Johannes Kirschbauer
24b3674983
Inventory: fix dataclasses discrepancy once more
2024-07-17 11:39:18 +02:00
Johannes Kirschbauer
0bfba72739
Inventory: fix options
2024-07-17 10:55:46 +02:00
Johannes Kirschbauer
ef18d60286
Inventory: extend python dataclasses by schema changes
2024-07-17 10:09:58 +02:00
Johannes Kirschbauer
7e21428548
Inventory: extend model by deployment info
2024-07-17 10:09:58 +02:00
Qubasa
ccece77680
clan-app: WebExecutor now mirrors jsonschema api types generically
2024-07-16 16:34:59 +02:00
clan-bot
be4f90eca1
Merge pull request 'cli: add programms to allowed list' ( #1765 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-07-16 11:52:56 +00:00
Johannes Kirschbauer
54dcbfae01
cli: add programms to allowed list
2024-07-16 13:49:16 +02:00
DavHau
d700f651b4
vars: add test for multiple machines
2024-07-16 18:35:13 +07:00
clan-bot
8a092cfed4
Merge pull request 'API: async signal integration migration' ( #1762 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-07-16 09:37:25 +00:00
Johannes Kirschbauer
cc238ecc60
API: async signal integration migration
2024-07-16 11:28:20 +02:00
DavHau
37e6ca7a30
clan-cli: deprecate nix_shell() in favor of run_cmd()
2024-07-16 14:03:17 +07:00
DavHau
0e335f7ecc
impure-checks: improve performance by disabling dynamic deps
2024-07-16 12:42:45 +07:00
Qubasa
cd48b8df0c
clan-app: Fix mypy lints and add GenericFnRuntime
2024-07-15 19:48:20 +02:00
Qubasa
25fea331d0
clan-app: Add Webview to python async backend
2024-07-15 19:24:38 +02:00
Johannes Kirschbauer
ad321976ff
Fix schema test
2024-07-14 15:02:32 +02:00
Johannes Kirschbauer
7bbe63a525
Fix schema test
2024-07-14 13:38:43 +02:00
Qubasa
bdbf8a8da0
clan-cli: Fix missing allowed-programs.json in package
2024-07-14 13:07:24 +02:00
Johannes Kirschbauer
b324e1a4f4
Fix some type issues
2024-07-11 17:05:57 +02:00
Johannes Kirschbauer
dfec6afd6b
Clan create: migrate to inventory
2024-07-11 16:39:06 +02:00
DavHau
9988fb744c
vars: implement sops.defaultGroups
2024-07-11 18:39:29 +07:00
DavHau
75b969b1ad
clan-cli: improve runtime dependency management
...
Many dependencies of clan-cli are currently dynamically loaded via nix-shell on each execution.
This is nice, as it reduces the initial closure size of clan, but the overhead introduced by nix-shell piles up quickly, as some commands shell out many times during their lifetime. For example, when adding a secret git is called 10+ times.
This reduces the time of a test which adds a secret from around 50 seconds to 15 seconds.
- add run_cmd() as an alternative to nix_shell()
- introduce the concept of static dependencies which do not need to go through nix-shell
- static dependencies are defined at build time and included into the wrapper for clan-cli
- add package: clan-cli-full which statically ships all required dependencies
TODO: deprecate nix_shell() in favor of run_cmd()
2024-07-11 15:34:41 +07:00
DavHau
d21926db47
vars: implement secret generation
2024-07-11 11:37:17 +07:00
clan-bot
b066c3633a
Merge pull request 'clan-cli: simplify cli helper' ( #1726 ) from DavHau/clan-core:DavHau-dave into main
2024-07-10 11:18:48 +00:00
DavHau
e7908c2af5
clan-cli: simplify cli helper
2024-07-10 18:14:06 +07:00
Johannes Kirschbauer
10bae7dcb0
UI: init flash poc
2024-07-10 09:43:18 +02:00