Commit Graph

2183 Commits

Author SHA1 Message Date
a-kenji
0a58adce18 clan: remove config subcommand
This removes the `config` subcommand from the cli and the documentation
to keep the api surface small.

While this functionality was convenient it doesn't need to be surfaced
by the clan cli.

The remaining `config` python module should be ported to the `clan-app`
in a follow up pr. Because the functionality is currently only used by
the `clan-app`.
Ideally together with: #1830.
2024-07-31 16:35:36 +00:00
Johannes Kirschbauer
8ddfaba599 Deserializer: add Literal; Annotated fields 2024-07-31 13:00:28 +02:00
clan-bot
6814946efa Merge pull request 'Deserializer: replace pydantic' (#1826) from hsjobeki/clan-core:hsjobeki-main into main 2024-07-30 12:36:08 +00:00
Johannes Kirschbauer
9db6cb8b6f Deserializer: add Nullable fields 2024-07-30 14:26:13 +02:00
a-kenji
72bbc2f094 clan: remove flatpak check
This check logs, if the cli is started inside a flatpak environment.
2024-07-30 14:21:15 +02:00
a-kenji
2eb6a9c404 merge-after-ci: use nix fmt
Use `nix fmt` instead of `treefmt` directly, since `treefmt` depends on
the cached devshell. This can lead to confusing errors.
2024-07-30 11:43:40 +00:00
a-kenji
452c00f5f1 clan/secrets: improve naming of secret key
Change the secret key help wording to: `secret-name`,
to convey that it is the key and not the value.

Fixes: #1696
2024-07-30 12:54:22 +02:00
Johannes Kirschbauer
5d8fa57f23 Deserializer: replace pydantic 2024-07-30 12:26:16 +02:00
Jörg Thalheim
cc5546d79d Merge remote-tracking branch 'origin/main' into rework-installation 2024-07-30 11:52:36 +02:00
Qubasa
ce1dec774e clan-vm-manager: Fix regression 2024-07-29 17:33:46 +02:00
Johannes Kirschbauer
fa0f393cbb Clan-app: edit clan, memoize active clan 2024-07-29 17:06:11 +02:00
Qubasa
ef29976ab8 shell.nix: remove dependency in shell.nix on webui 2024-07-29 13:52:11 +02:00
DavHau
395c5cbace vars/sops: fix loading of vars from directory structure 2024-07-29 18:01:26 +07:00
Johannes Kirschbauer
4be5ed28db Clan-app: example disk view 2024-07-29 11:49:55 +02:00
Johannes Kirschbauer
395a7fc70e Serializer: use alias, make it configurable for different use cases 2024-07-29 09:01:06 +02:00
Johannes Kirschbauer
7a3fad01e0 PropagatedBuild inputs workaround 2024-07-26 15:23:25 +02:00
Johannes Kirschbauer
d7b6fc16a4 Serde: add unit tests for all serialization and deserialization logic 2024-07-26 14:23:41 +02:00
Johannes Kirschbauer
b48135ca51 Clan-app: add popover - remove clan confirm 2024-07-25 13:11:50 +02:00
Johannes Kirschbauer
dd0c211ac4 Clan-app: add dependencies; floating-ui; eslint-query 2024-07-25 13:09:18 +02:00
Jörg Thalheim
8ccd8af3cc Merge remote-tracking branch 'origin/main' into rework-installation 2024-07-24 21:58:57 +02:00
Jörg Thalheim
87a78ac6a8 fix error message when removing secrets 2024-07-24 20:21:10 +02:00
Jörg Thalheim
fe99fb8e34 remove 'Extra config:' warning 2024-07-24 20:04:31 +02:00
Johannes Kirschbauer
1a881e43e5 Clan-app: show clan details for each registered clan 2024-07-24 18:26:26 +02:00
Johannes Kirschbauer
edd290e314 Clan-app: devshell add schemas for gtk4; gsettings 2024-07-24 18:26:26 +02:00
DavHau
1b3dc65b89 vars/sops: store secrets in /sops/vars 2024-07-24 18:42:50 +07:00
clan-bot
49ace8a765 Merge pull request 'Inventory improvements' (#1795) from hsjobeki/clan-core:hsjobeki-main into main 2024-07-24 11:23:16 +00:00
Johannes Kirschbauer
1b52dca96b Fix unit tests 2024-07-24 13:15:08 +02:00
DavHau
d7d3c404fa sops/refactor: lay groundwork for secrets with arbitrary paths 2024-07-24 18:12:19 +07:00
DavHau
4300838986 secrets: refactor parameter naming 2024-07-24 17:50:03 +07:00
DavHau
2bc716377d tests/generate_flake: support inventory argument 2024-07-24 17:06:42 +07:00
clan-bot
e66ea402ea Merge pull request 'Add clan.borgbackup.exclude.' (#1790) from inventory-fixes into main 2024-07-24 08:40:54 +00:00
Johannes Kirschbauer
a8886e9e2f Python Inventory classes: Auto-update 2024-07-24 10:37:19 +02:00
Johannes Kirschbauer
d91090bb0e Create machine: init view with api 2024-07-24 10:34:11 +02:00
Johannes Kirschbauer
2a147462c0 CLI: fix flakeId url interpretation 2024-07-24 10:34:11 +02:00
Johannes Kirschbauer
a4bdc10462 cli: Disable pre-commit hooks for cli commands 2024-07-24 10:34:10 +02:00
Johannes Kirschbauer
871fa8f1ff Inventory: add load_eval method 2024-07-24 10:34:10 +02:00
Qubasa
9ae1bc5f63 clan-vm-manager, clan-app: Make executable icon work in process overview 2024-07-23 14:12:45 +02:00
clan-bot
d014ad7829 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
31161322d6 clan-vm-manager: Fix waypipe regression in nix code 2024-07-23 13:20:02 +02:00
DavHau
cee0e74476 clan-cli/secrets: refactor: rename secret -> secret_path 2024-07-23 18:18:32 +07:00
DavHau
5105ff14e0 vars: add support for password-store 2024-07-23 14:54:18 +07:00
Jörg Thalheim
09fb500671 password-store: write secrets with read-only permission
Otherwise we are installing secrets with the wrong permissions on the
first install
2024-07-22 17:22:01 +02:00
Jörg Thalheim
7ff296113d add option to not create a git in flakes create 2024-07-22 16:08:59 +02:00
Jörg Thalheim
3bbfe7fad2 hw-configure: use hostname specified in the nixos configuration 2024-07-22 16:08:59 +02:00
DavHau
0acf9178c8 vars: implement prompts 2024-07-22 20:40:12 +07:00
Jörg Thalheim
05a28e596d don't setup json inventory for cli users 2024-07-22 08:22:58 +02:00
Jörg Thalheim
f04ed457db cli: default template url should come from the package itself rather than our gitea
This allow easier testing and also forks.
2024-07-22 08:22:58 +02:00
Jörg Thalheim
32876a5d5d borgbackup: add exclude option 2024-07-21 22:58:34 +02:00
Jörg Thalheim
7004d1ea7f cleanup deprecated facts options 2024-07-21 18:11:30 +02:00
Jörg Thalheim
e0640b0a29 test_flake_with_core_and_pass: don't use deprecated options 2024-07-21 18:03:51 +02:00