Johannes Kirschbauer
2ebc0902c1
Test: fixup
2024-07-06 17:51:46 +02:00
Johannes Kirschbauer
cb13ddb464
API Types: treat '_*' as private fields and dont inspect them
2024-07-06 17:22:47 +02:00
DavHau
4cde2d96be
Reapply "clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}"
...
This reverts commit 9778444706 .
workaround upstream bug: https://github.com/NixOS/nixpkgs/issues/324802
2024-07-05 19:29:01 +07:00
Jörg Thalheim
9778444706
Revert "clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}"
...
This reverts commit afbd4a984d .
The old configuration cannot be updated like this:
eve] error:
[eve] … while calling the 'head' builtin
[eve] at /nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/lib/attrsets.nix:1575:11:
[eve] 1574| || pred here (elemAt values 1) (head values) then
[eve] 1575| head values
[eve] | ^
[eve] 1576| else
[eve]
[eve] … while evaluating the attribute 'value'
[eve] at /nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/lib/modules.nix:809:9:
[eve] 808| in warnDeprecation opt //
[eve] 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
[eve] | ^
[eve] 810| inherit (res.defsFinal') highestPrio;
[eve]
[eve] … while evaluating the option `system.build.toplevel':
[eve]
[eve] … while evaluating definitions from `/nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/nixos/modules/system/activation/top-level.nix':
[eve]
[eve] … while evaluating the option `assertions':
[eve]
[eve] … while evaluating definitions from `/nix/store/5b0hl2dnvr1sawqlkwmsnaiyqz00d34h-source/nixos/modules/system/boot/systemd.nix':
[eve]
[eve] … while evaluating the option `systemd.services':
[eve]
[eve] … while evaluating definitions from `/nix/store/kpzcdgndym0qm1w490mjvk9c2qmz03h5-source/nixosModules/clanCore/zerotier':
[eve]
[eve] … while evaluating the option `clan.core.networking.zerotier.networkId':
[eve]
[eve] (stack trace truncated; use '--show-trace' to show the full, detailed trace)
[eve]
[eve] error: A definition for option `clan.core.networking.zerotier.networkId' is not of type `null or string'. Definition values:
[eve] - In `/nix/store/kpzcdgndym0qm1w490mjvk9c2qmz03h5-source/nixosModules/clanCore/networking.nix':
[eve] {
[eve] _type = "override";
[eve] content = "267efd4a15b69623";
[eve] priorit
2024-07-05 11:16:05 +02:00
DavHau
afbd4a984d
clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}
2024-07-04 17:05:37 +07:00
Jörg Thalheim
d9c5f16e05
add assertion if FlakeId has wrong value
2024-07-03 18:28:55 +02:00
Jörg Thalheim
c44a99e304
don't catch all exceptions when generating facts
2024-07-03 18:28:55 +02:00
Jörg Thalheim
5b606c035f
move FlakeId to flake id
...
move FlakeId to flake id
2024-07-03 18:28:55 +02:00
clan-bot
044cf3923e
Merge pull request 'refactor-machine' ( #1691 ) from refactor-machine into main
2024-07-03 10:48:09 +00:00
Jörg Thalheim
b4698528ef
make machine class now a dataclass
2024-07-03 12:34:43 +02:00
Johannes Kirschbauer
d6493ed64d
API: tests for module instance update
2024-07-02 16:09:13 +02:00
Jörg Thalheim
cc583dd79e
simplify clan uri further
2024-07-02 12:52:10 +02:00
clan-bot
6b70792cae
Merge pull request 'remove unused multi machine clan urls' ( #1687 ) from Mic92-main into main
2024-07-02 10:26:14 +00:00
Jörg Thalheim
e637394370
remove unused multi machine clan urls
2024-07-02 12:20:30 +02:00
Johannes Kirschbauer
16c9aa99a9
API: add performance constraints
2024-07-02 12:07:45 +02:00
clan-bot
1448e593e9
Merge pull request 'machines/machines: drop unused qmp wrapper' ( #1683 ) from Mic92-main into main
2024-07-02 10:01:43 +00:00
Jörg Thalheim
815bb336be
remove unused MachineParams
2024-07-02 11:57:39 +02:00
Johannes Kirschbauer
5ab22d043d
api: clan Modules add readme content
2024-07-02 11:45:48 +02:00
Jörg Thalheim
47010f458c
machines/machines: drop unused qmp wrapper
2024-07-02 11:42:02 +02:00
clan-bot
f37d0c746d
Merge pull request 'API: migrate add machine to inventory' ( #1676 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-07-02 09:25:01 +00:00
Johannes Kirschbauer
f7c80834cb
Inventory persistence improves error resistance
2024-07-02 11:16:54 +02:00
Johannes Kirschbauer
9f484c1d39
API: migrate machines delete and list to inventory
2024-07-02 11:07:11 +02:00
a-kenji
d9ba61c30a
clan: implement OSC8 hyperlinks for help output
...
The name of the terminal help output stays the same to keep
compatibility with legacy terminal implementations.
2024-07-02 08:55:01 +00:00
Johannes Kirschbauer
df934334a2
API: migrate add machine to inventory
2024-07-01 21:55:42 +02:00
Johannes Kirschbauer
c678608105
Inventory: add system and sample machine
2024-07-01 21:25:02 +02:00
Jörg Thalheim
2e2358d850
introduce minifakeroot that also works on macos
2024-06-27 18:53:10 +02:00
Jörg Thalheim
bae0a888c9
make bubblewrap in fact generation optional
2024-06-27 18:23:05 +02:00
DavHau
ea87166e44
api: add endpoint machine_schema
2024-06-27 16:58:37 +07:00
a-kenji
fa37d528b3
clan: state add information about the backup command hooks to the help
2024-06-26 08:46:02 +00:00
Johannes Kirschbauer
fe21d2edb9
API: add clanModules list and details test
2024-06-25 21:31:44 +02:00
Johannes Kirschbauer
9b0e2a87e8
ClanModules: Add docs and api to retrieve metadata
2024-06-25 21:17:01 +02:00
a-kenji
af2ffb7e5e
clan: state list improve formatting
2024-06-25 11:50:19 +02:00
a-kenji
3bcaeda737
cli: add command to list state
...
Add a subcommand to list configured state for a specific machine.
Example:
```
$ clan state list [MACHINE]
```
2024-06-25 09:34:31 +00:00
a-kenji
cd8ec83881
clan: ssh fix typos
2024-06-25 10:32:05 +02:00
Qubasa
70ca824e88
clan-cli: Acutally test SecretStore for age and password-store.
2024-06-24 21:41:16 +02:00
Qubasa
1ff58adcef
clan-cli: Add validity check for age key generation
2024-06-21 15:07:53 +02:00
Qubasa
8ee33950e6
clan-cli: Disable stack trace on KeyboardInterrupt
2024-06-21 13:11:33 +02:00
Johannes Kirschbauer
399ce2e35c
UI: display block devices
2024-06-19 11:36:19 +02:00
DavHau
313db5643f
refactor: rename clanCore -> clan.core
2024-06-18 18:32:40 +07:00
Johannes Kirschbauer
b73246bdfd
API: init methods: hw_generate, dns discovery
2024-06-16 16:29:18 +02:00
Johannes Kirschbauer
43e8804eb4
Docs: update machine hardware config instructions
2024-06-15 22:27:46 +02:00
Johannes Kirschbauer
5e39514251
CLI: init hw-generate command
2024-06-15 21:31:23 +02:00
Johannes Kirschbauer
cb847cab82
API: init op_key, improve seralisation & signature typing
2024-06-15 11:32:09 +02:00
samrose
06bbae6d14
fix: trying run_no_stdout with original show-config
2024-06-13 18:44:50 -04:00
samrose
5f22493361
fix: formatting cli command correctly
2024-06-13 12:59:26 -04:00
samrose
56a4caf39b
fix: outside of direnv clan-li warns this is going to be deprecated
2024-06-13 12:44:48 -04:00
Johannes Kirschbauer
6743ff96a9
API: init icon resolve
2024-06-12 13:21:39 +02:00
Johannes Kirschbauer
48aee84547
Webview: add form handling for create clan
2024-06-11 19:20:40 +02:00
Johannes Kirschbauer
d587b326b5
API: improve type & class construction
2024-06-11 19:20:40 +02:00
Johannes Kirschbauer
913ab4627c
Webview: init 'open clan' workflow
2024-06-11 16:28:02 +02:00