lassulus
300aaa48e7
clan-cli: use new flake caching for machines
2025-02-23 15:58:03 +01:00
lassulus
aa98c33d40
machines install: fix installation via tor
2025-02-22 03:39:42 +00:00
lassulus
90bd9217e3
vars fs: fix
2025-02-22 03:39:42 +00:00
lassulus
d171d99923
clan-cli deploy_info: fix find_reachable_host returning unreachable hosts
2025-02-22 03:39:42 +00:00
Denis Rosca
7a28d9274d
Add support for XDG_* style directories on macos
...
Closes #2864
2025-02-22 03:34:56 +00:00
Jörg Thalheim
eb38ea14ce
fix regex for detecting git+file inputs
2025-02-20 10:00:04 +07:00
Louis Opter
c689c23d0c
clan-cli: "fix" ssh option parsing
...
Calling it fix in double quotes since that's still quite hand-crafted,
but at least you can now specify options with `@` inside them (e.g.
`ProxyJump`) and have it work properly.
Moreover this fixes the syntax for GET-like variables in the networking
clanCore module. Only the fixed syntax is supported since that's what
was tested, and actually parsed in the code.
2025-02-18 21:37:38 +00:00
Qubasa
2d0bcfe6f6
clan-cli: Fix clan create throwing a warning if --flake is not defined
2025-02-18 17:40:27 +07:00
Qubasa
e3651d0ae0
clan-clI: Improve error message of clan update-hardware-config on non found nixos-facter
2025-02-18 17:40:27 +07:00
Pablo Ovelleiro Corral
f28a38bbb3
Make store-backend configurable
2025-02-18 06:34:50 +01:00
Qubasa
52fd912b45
clan-cli: Fix clan flakes create inside an already existing git repo
2025-02-17 13:23:31 +07:00
Michael Hoang
16848ba723
machines: hide morph
2025-02-17 00:22:14 +07:00
Pablo Ovelleiro Corral
0d001e21b9
Create directory
2025-02-16 17:08:54 +00:00
Pablo Ovelleiro Corral
e621aa1a34
Fix locking
2025-02-16 17:08:54 +00:00
Pablo Ovelleiro Corral
d63b4ffbd8
Fix output when rebuilding
2025-02-16 17:08:54 +00:00
Michael Hoang
4e2ae0f9f6
cli: add morph command
2025-02-16 21:31:28 +07:00
Michael Hoang
0d9963c1a6
cli: make some functions only create commits optionally
2025-02-16 21:14:09 +07:00
lassulus
451d865109
cli: nix_add_to_gcroots: don't run in sandboxed tests
2025-02-15 09:59:41 +00:00
lassulus
14f49512ed
clan-cli flake caching: fix selectors not merging
2025-02-15 09:59:41 +00:00
lassulus
0767eadb81
clan-cli: hash the flake_hash to remove unwanted character from path
2025-02-15 09:59:41 +00:00
Johannes Kirschbauer
2c0567ca27
Cli: delete machines bugfix. Dont modify the inventory in other places
2025-02-15 09:03:54 +07:00
Johannes Kirschbauer
d8e27b9abf
Inventory: init delete api
2025-02-15 09:03:46 +07:00
Qubasa
96134616f9
clan-cli: Make copy_from_nixstore work with single files
2025-02-14 13:28:01 +07:00
Qubasa
ca946408f4
clan-cli: Fix garbled clan vms run output. docs: Improve debugging guide
2025-02-13 16:17:55 +07:00
Qubasa
39657ddb2f
clan-cli: Remove flake-registry set to none in get_clan_nix_attrset
2025-02-13 15:47:28 +07:00
Qubasa
64231e45f2
clan-cli: Fix symlink issue with copy_from_nixstore, add test for it. Also add more comprehensive clan template tests
2025-02-13 15:34:21 +07:00
Sacha Korban
9bc3d808c1
clan-cli: machines install: add phases option for nixos-anywhere
2025-02-13 17:10:02 +11:00
Louis Opter
0c1244ecb6
clan-cli: secrets machines remove: update secrets after removing the key
...
Quick follow up to PR #2781 , this commit does the same kind of logic but
for machines instead of users and groups.
Note that this only affects the `clan secrets machines remove`
sub-command, and that `clan machines delete` still leaves unusable
secrets & vars behind. This can be addressed in a different change.
2025-02-13 03:53:23 +00:00
Qubasa
a8fa8f505c
clan-cli: Add update_clan boolean option to create_clan
2025-02-10 20:36:55 +07:00
Qubasa
8baff4637e
clan-cli: Fix disko template to not fail because of missing bootloader.
2025-02-10 20:36:55 +07:00
lassulus
2dbdb61438
clan-cli: add persistant flake caching
2025-02-10 13:29:01 +00:00
Johannes Kirschbauer
048bd37e3b
Inventory: automatically create emtpy file on write
2025-02-10 09:02:23 +00:00
Johannes Kirschbauer
f380046050
CLI: machine create use patch inventory for partial updates
2025-02-10 09:02:23 +00:00
lassulus
7d8c72f9bc
clan_cli flake caching: support outPath
2025-02-10 04:33:37 +00:00
lassulus
2a8f40e91a
clan_cli machines: use Flake instead of FlakeId
2025-02-07 06:26:09 +01:00
a-kenji
cf1a4f805c
pkgs/cli: Rename create_file -> persist
2025-02-06 14:59:59 +00:00
a-kenji
521539608f
pgks/cli: Add toplevel aliases
2025-02-06 14:56:57 +00:00
lassulus
9195fe4ca2
clan-cli: test_flake_caching: add actual flake caching test
2025-02-05 10:17:37 +00:00
Qubasa
bf26a2d306
clan-cli: Fix incorrect input handling in get_templates
2025-02-04 08:10:32 +00:00
a-kenji
1629fb68bd
pkgs/clan: Remove select debug prints
2025-02-04 07:32:55 +00:00
a-kenji
38f1087517
pkgs/clan: Fix help formatter
2025-02-04 07:32:55 +00:00
lassulus
3f19444985
clan_cli: add select command
2025-02-04 07:32:55 +00:00
Jörg Thalheim
638710818b
fix mypy
2025-02-04 04:02:42 +00:00
Louis Opter
48268f7960
clan-cli: do not skip secrets.update_secrets when a group is removed
...
We need to remove all keys that were in the group from affected secrets.
With this change we now take `group_name` as an argument in
`{add,remove}_member`, which is a little bit more readable than
`group_folder.parent.name`, and helps DRY the code a bit.
2025-02-04 03:13:20 +00:00
Louis Opter
ef442ef316
clan-cli: secrets users add: make sure only one key argument was passed
...
This is slightly better input validation FWIW.
2025-02-04 03:13:20 +00:00
Louis Opter
81cf521d8c
clan-cli: secrets: properly update secrets when an user is removed
...
Fixes #2659 .
2025-02-04 03:13:20 +00:00
Louis Opter
5fc9440a1e
clan-cli: secrets: truly catch broken symlinks in collect_keys_for_type
2025-02-04 03:13:20 +00:00
Louis Opter
e2c6b7bffc
clan-cli: secrets key generate: fix call to action message
...
So that it makes sense when an already existing PGP key is specified.
2025-02-04 03:13:20 +00:00
Louis Opter
26d07cf1f5
clan-cli: secrets: commit changes when group members are added or removed
2025-02-04 03:13:20 +00:00
Louis Opter
7be310062f
clan-cli: honor clan.core.sops.defaultGroups option in vars fix
2025-02-04 03:13:20 +00:00