Johannes Kirschbauer
91397adbfc
Fix: regression list_machines. Split into multiple functions
...
list_inventory_machines, list_nixos_machine, list_sops_machines
The caller of the function should specify which machines they wants to see
2024-08-03 12:43:35 +02:00
Johannes Kirschbauer
8fd09b8403
Add build-clan module
2024-08-03 12:05:09 +02:00
DavHau
cc9c828598
vars: introduce share flag
2024-08-03 15:26:53 +07:00
Qubasa
f1d124dabd
clan-app: Finish flash view. clan-cli: Flash cli now verifies if language and keymap are valid.
2024-08-02 17:51:45 +02:00
a-kenji
a465ad8638
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
6c5f9ca6db
Deserializer: add Literal; Annotated fields
2024-07-31 13:00:28 +02:00
clan-bot
0894ee95c8
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
4b2d1b7923
Deserializer: add Nullable fields
2024-07-30 14:26:13 +02:00
a-kenji
acb5560de8
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
ccdfd0c6fc
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
e21bfbc257
Deserializer: replace pydantic
2024-07-30 12:26:16 +02:00
Jörg Thalheim
2df19898a7
Merge remote-tracking branch 'origin/main' into rework-installation
2024-07-30 11:52:36 +02:00
Qubasa
0dcc9f903b
clan-vm-manager: Fix regression
2024-07-29 17:33:46 +02:00
Johannes Kirschbauer
6a13cb80cb
Clan-app: edit clan, memoize active clan
2024-07-29 17:06:11 +02:00
DavHau
a5065a1936
vars/sops: fix loading of vars from directory structure
2024-07-29 18:01:26 +07:00
Johannes Kirschbauer
d11e725a80
Clan-app: example disk view
2024-07-29 11:49:55 +02:00
Johannes Kirschbauer
3e5ceb0eeb
Serializer: use alias, make it configurable for different use cases
2024-07-29 09:01:06 +02:00
Johannes Kirschbauer
b015f1f123
PropagatedBuild inputs workaround
2024-07-26 15:23:25 +02:00
Johannes Kirschbauer
c648e647bf
Serde: add unit tests for all serialization and deserialization logic
2024-07-26 14:23:41 +02:00
Jörg Thalheim
4ed7e9b030
Merge remote-tracking branch 'origin/main' into rework-installation
2024-07-24 21:58:57 +02:00
Jörg Thalheim
3583c25c67
fix error message when removing secrets
2024-07-24 20:21:10 +02:00
Jörg Thalheim
a6f4d6fbf0
remove 'Extra config:' warning
2024-07-24 20:04:31 +02:00
Johannes Kirschbauer
fe10c5fbd6
Clan-app: show clan details for each registered clan
2024-07-24 18:26:26 +02:00
DavHau
9996f5596c
vars/sops: store secrets in /sops/vars
2024-07-24 18:42:50 +07:00
clan-bot
8020010fcf
Merge pull request 'Inventory improvements' ( #1795 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-07-24 11:23:16 +00:00
Johannes Kirschbauer
1d51ae5c85
Fix unit tests
2024-07-24 13:15:08 +02:00
DavHau
ac5d421f84
sops/refactor: lay groundwork for secrets with arbitrary paths
2024-07-24 18:12:19 +07:00
DavHau
0222ebf482
secrets: refactor parameter naming
2024-07-24 17:50:03 +07:00
clan-bot
4d25118853
Merge pull request 'Add clan.borgbackup.exclude.' ( #1790 ) from inventory-fixes into main
2024-07-24 08:40:54 +00:00
Johannes Kirschbauer
c8407e2052
Python Inventory classes: Auto-update
2024-07-24 10:37:19 +02:00
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
Jörg Thalheim
21346f84ac
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
8197bced46
add option to not create a git in flakes create
2024-07-22 16:08:59 +02:00
Jörg Thalheim
bba39c5c7d
hw-configure: use hostname specified in the nixos configuration
2024-07-22 16:08:59 +02:00
DavHau
9ff076aec1
vars: implement prompts
2024-07-22 20:40:12 +07:00
Jörg Thalheim
927aec0db5
don't setup json inventory for cli users
2024-07-22 08:22:58 +02:00
Jörg Thalheim
1e43a471d2
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
a22286018f
borgbackup: add exclude option
2024-07-21 22:58:34 +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