Michael Hoang
e215a9db6e
install: let nixos-anywhere determine where to build automatically
...
This fixes installing machines that don't have `system` defined i.e.
when running `clan machines install` with `--update-hardware-config`.
2025-03-10 12:30:03 +09:00
DavHau
9797ef792a
vars+facts: use bwrap only if supported
2025-03-09 13:52:15 +07:00
Qubasa
468a25034e
clan-cli: Make Lix compatible again
2025-03-07 14:06:35 +01:00
Qubasa
212c899767
clan-cli: Revert generating facts in clan facts list, for consistency
2025-03-03 01:40:40 +01:00
Qubasa
2ec4e49650
clan-cli: Fix wrong clan vars generate regression added by a903a9028b
2025-03-02 19:53:17 +01:00
Qubasa
ba28691747
clan-cli: Fix get_all_facts forgetting to generate facts before getting them
2025-03-02 15:07:57 +01:00
Michael Hoang
39761946a0
vars/sops: fix clan vars fix missing machine name in error message
2025-03-02 08:22:23 +07:00
Qubasa
0da1a05b55
clan-cli: Remove can_build_locally and replace with nixos-anywhere --build-on auto
2025-03-01 17:52:41 +01:00
Qubasa
6099aeb0c6
clan-cli: Make host upload function support uploading single files too
2025-03-01 17:10:42 +01:00
lassulus
d20f13abe7
clan-cli: set ssh port for nix copy
2025-02-28 04:58:42 +00:00
lassulus
60b22fdf0e
clan-cli: another try to fix the CI bug
2025-02-27 08:24:28 +01:00
lassulus
cb13e7fab8
clan-cli: check if paths exist in cache check
2025-02-27 02:53:41 +01:00
Qubasa
b82a3b6085
clan-cli: Fix flake.py missing cache eviction if there is a garbage collected path
2025-02-27 01:01:50 +01:00
r17x
456b25c921
fix(clan-cli): fix cross system
2025-02-26 14:27:00 +07:00
Pablo Ovelleiro Corral
46971aa51f
Apply suggestion
2025-02-25 08:51:51 +01:00
Pablo Ovelleiro Corral
3d83266916
Fix exists() check for age files
2025-02-25 08:51:51 +01:00
Qubasa
7b8a980336
clan-cli: Remove allow_uknown_placeholders flag. With upcoming nixos-anywhere patch this is not needed anymore.
2025-02-23 21:50:21 +01:00
Qubasa
d53e062024
clan-cli: Add an optional reference to an AsyncFuture to track origin of task.
2025-02-23 21:44:00 +01:00
lassulus
5ac629f549
clan-cli: use new flake caching for machines
2025-02-23 15:58:03 +01:00
lassulus
3121c5ecdb
machines install: fix installation via tor
2025-02-22 03:39:42 +00:00
lassulus
ada544ef56
vars fs: fix
2025-02-22 03:39:42 +00:00
lassulus
3e0f9f52bb
clan-cli deploy_info: fix find_reachable_host returning unreachable hosts
2025-02-22 03:39:42 +00:00
Denis Rosca
baa0a615ea
Add support for XDG_* style directories on macos
...
Closes #2864
2025-02-22 03:34:56 +00:00
Jörg Thalheim
1f3bd09245
fix regex for detecting git+file inputs
2025-02-20 10:00:04 +07:00
Louis Opter
37bbbefa8e
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
d44def5381
clan-cli: Fix clan create throwing a warning if --flake is not defined
2025-02-18 17:40:27 +07:00
Qubasa
03ce74fc74
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
27a3126d68
Make store-backend configurable
2025-02-18 06:34:50 +01:00
Qubasa
a5e32f9b6d
clan-cli: Fix clan flakes create inside an already existing git repo
2025-02-17 13:23:31 +07:00
Michael Hoang
af228db398
machines: hide morph
2025-02-17 00:22:14 +07:00
Pablo Ovelleiro Corral
b0e7de3c8b
Create directory
2025-02-16 17:08:54 +00:00
Pablo Ovelleiro Corral
cb89fb0847
Fix locking
2025-02-16 17:08:54 +00:00
Pablo Ovelleiro Corral
014aec9531
Fix output when rebuilding
2025-02-16 17:08:54 +00:00
Michael Hoang
160bbfcb37
cli: add morph command
2025-02-16 21:31:28 +07:00
Michael Hoang
bc53c7a886
cli: make some functions only create commits optionally
2025-02-16 21:14:09 +07:00
lassulus
0c7173afd0
cli: nix_add_to_gcroots: don't run in sandboxed tests
2025-02-15 09:59:41 +00:00
lassulus
d5e391ecc8
clan-cli flake caching: fix selectors not merging
2025-02-15 09:59:41 +00:00
lassulus
2a3bc7b31b
clan-cli: hash the flake_hash to remove unwanted character from path
2025-02-15 09:59:41 +00:00
Johannes Kirschbauer
153b5560c3
Cli: delete machines bugfix. Dont modify the inventory in other places
2025-02-15 09:03:54 +07:00
Johannes Kirschbauer
2412513ad4
Inventory: init delete api
2025-02-15 09:03:46 +07:00
Qubasa
663ab70465
clan-cli: Make copy_from_nixstore work with single files
2025-02-14 13:28:01 +07:00
Qubasa
de3153259d
clan-cli: Fix garbled clan vms run output. docs: Improve debugging guide
2025-02-13 16:17:55 +07:00
Qubasa
41cb679eab
clan-cli: Remove flake-registry set to none in get_clan_nix_attrset
2025-02-13 15:47:28 +07:00
Qubasa
b138cfcd69
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
0eaaabcf63
clan-cli: machines install: add phases option for nixos-anywhere
2025-02-13 17:10:02 +11:00
Louis Opter
5a6038f742
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
69d092c46b
clan-cli: Add update_clan boolean option to create_clan
2025-02-10 20:36:55 +07:00
Qubasa
2663a181d0
clan-cli: Fix disko template to not fail because of missing bootloader.
2025-02-10 20:36:55 +07:00
lassulus
0872b781d7
clan-cli: add persistant flake caching
2025-02-10 13:29:01 +00:00
Johannes Kirschbauer
9b706c148b
Inventory: automatically create emtpy file on write
2025-02-10 09:02:23 +00:00