Commit Graph

1541 Commits

Author SHA1 Message Date
Jörg Thalheim
efa0546da5 sops: make symlinks relative 2023-08-08 17:24:40 +02:00
Jörg Thalheim
35f2d6a76e add dummy sops manifest 2023-08-08 16:40:32 +02:00
Jörg Thalheim
d8c2df2e72 add test for import-sops command 2023-08-08 16:28:38 +02:00
Jörg Thalheim
1d1452ddd5 add import-sops command to secrets 2023-08-08 15:48:19 +02:00
clan-bot
6f22717ffd Merge pull request 'fix rotating keys with sops' (#94) from Mic92-mic92 into main 2023-08-08 11:44:55 +00:00
Jörg Thalheim
0533948085 fix rotating keys with sops 2023-08-08 13:44:15 +02:00
Qubasa
52c73265ac Fixed wrong flake template name (#89)
Co-authored-by: Luis-Hebendanz <luis.nixos@gmail.com>
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/89
2023-08-05 12:19:14 +00:00
Jörg Thalheim
31a2d90df9 cli: fix installation of subpackages 2023-08-03 15:22:22 +02:00
Jörg Thalheim
ae4f36ecf9 clan-cli/sops: rename add_key to write_key 2023-08-03 14:58:51 +02:00
Jörg Thalheim
9b1f0cf918 clan-cli: fix error message if registering parser fails 2023-08-03 13:38:35 +02:00
Jörg Thalheim
7199f405ab cli: fix broken type checks in config module 2023-08-03 13:34:44 +02:00
Jörg Thalheim
54e9d4427c fix cirular import 2023-08-03 11:07:17 +02:00
DavHau
7299a63a13 clan-config: allow passing schema or module file 2023-08-02 21:10:41 +02:00
DavHau
b88ac7a2bf clan-config: init
- nixos-modules to jsonschema converter
- nix unit testing via adisbladis/nix-unit
- clan config: configuration CLI for nixos-modules
2023-08-02 20:04:16 +02:00
Jörg Thalheim
dab483339a test list/remove secret 2023-08-02 12:00:32 +00:00
Jörg Thalheim
658c76336f add secrets integration
clan-cli: also depend on age for secrets
2023-08-02 09:19:14 +00:00
Jörg Thalheim
7c388f977e dirs: fix user_config_dir on macos 2023-07-29 14:21:36 +02:00
Jörg Thalheim
270c3fc2e6 cli: drop no cover pragma
We don't really enforce 100% coverage anymore
2023-07-28 16:14:40 +02:00
Jörg Thalheim
e219d38c7c cli/main: catch ClanError in main 2023-07-28 16:13:43 +02:00
Jörg Thalheim
88a2c2656a get_clan_flake_toplevel: fix check 2023-07-28 12:36:01 +02:00
Jörg Thalheim
5e5fbfcf06 write test for get_clan_flake_toplevel 2023-07-28 10:22:25 +00:00
Jörg Thalheim
4101b9adb4 introduce ClanError type 2023-07-27 15:47:15 +02:00
Jörg Thalheim
a61d0c5a42 add dirs module to get toplevel flake and configuration dir 2023-07-26 14:34:39 +02:00
Jörg Thalheim
20dc480123 add tty module to color text 2023-07-26 14:33:15 +02:00
Jörg Thalheim
09cc79867d cli: get optional deps from our own flake
This ensures we actually test if all those binaries build
2023-07-26 09:31:49 +02:00
Jörg Thalheim
ed474457b3 drop executable bit on cli packages 2023-07-26 09:31:49 +02:00
Jörg Thalheim
83005a6795 cli: use nixpkgs in nix shell in pure mode
This avoids nixpkgs config and overlay provided by the user.
Also enables caching in nix.
2023-07-26 09:31:49 +02:00
Jörg Thalheim
72f6b368d6 cli: resolve CLAN_NIXPKGS on every invocation
this makes mocking easier
2023-07-26 06:53:33 +00:00
Jörg Thalheim
9aa75336b7 cli: use nix_shell also in ssh.py 2023-07-26 06:53:33 +00:00
Jörg Thalheim
409e5d459c zerotier: move nix_shell to external package 2023-07-26 08:04:46 +02:00
Jörg Thalheim
a6e8e08dec add module to generate zerotier configuration 2023-07-25 19:13:24 +02:00
DavHau
e56b86f8b2 clan-cli: remove coverage exclusion for qrcode_scan 2023-07-25 15:48:01 +02:00
DavHau
1183ac9618 clan-cli: format 2023-07-25 15:43:45 +02:00
DavHau
310bdacb9d clan-cli/ssh: add tests + fixes 2023-07-25 15:16:05 +02:00
DavHau
c354157bd5 clan-cli: minor fixes in ssh.py 2023-07-25 00:59:03 +02:00
lassulus
a3bcb93f2f clan-cli: split out ssh subcommand, add more tests 2023-07-24 21:15:39 +02:00
lassulus
09bc5b06c9 clan-cli: add ssh subcommand 2023-07-24 17:42:26 +02:00
lassulus
291b353d9c clan-cli: actually run commands 2023-07-24 17:42:26 +02:00
DavHau
7223b25ac6 clan-cli: fix tests 2023-07-21 14:07:38 +02:00
Jörg Thalheim
3ce01871e5 fix black and ruff checks 2023-07-21 13:03:51 +02:00
Jörg Thalheim
0bf3f42812 clan-cli: restructure according to python's module standard 2023-07-21 12:47:47 +02:00