Commit Graph

64 Commits

Author SHA1 Message Date
Jörg Thalheim
4af1954abf ruff: enable warning lints 2024-10-23 09:06:02 +00:00
Jörg Thalheim
6122839f90 improve terminating processes on error 2024-10-10 17:59:26 +02:00
Jörg Thalheim
5ac3ac63c2 get rid of ValueError 2024-09-03 18:14:31 +02:00
Jörg Thalheim
29909e49d3 apply TRY lint 2024-09-03 18:13:46 +02:00
Jörg Thalheim
e150b37fb8 enable ASYNC, DTZ, YTT and EM lints 2024-09-02 14:07:06 +02:00
Jörg Thalheim
466c7cb8bd zerotierone: use our own upgraded zerotierone package in nixos module 2024-08-16 11:04:42 +02:00
Johannes Kirschbauer
742e0a71b5 Clan-core: Rename clanName within Machines 2024-08-06 12:21:46 +02:00
DavHau
79d6f8e893 Reapply "clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}"
This reverts commit 71009f80d8.

workaround upstream bug: https://github.com/NixOS/nixpkgs/issues/324802
2024-07-05 19:29:01 +07:00
Jörg Thalheim
71009f80d8 Revert "clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking}"
This reverts commit 18b64f2d0b.

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
18b64f2d0b clan.core: rename clan.{deployment,networking} -> clan.core.{deployment,networking} 2024-07-04 17:05:37 +07:00
Jörg Thalheim
cb9fbc969b introduce minifakeroot that also works on macos 2024-06-27 18:53:10 +02:00
DavHau
4db2e8303f refactor: rename clanCore -> clan.core 2024-06-18 18:32:40 +07:00
Jörg Thalheim
908fdb444f drop deprecated mdDoc 2024-05-28 13:35:11 +02:00
Jörg Thalheim
751f676079 rework multicast support 2024-04-17 10:57:17 +02:00
Jörg Thalheim
237fb9234d migrate secrets to new api 2024-03-28 11:02:14 +01:00
DavHau
90a504936c checks: add check for rendering docs 2024-03-27 16:59:42 +07:00
Jörg Thalheim
ede4d3f6e5 re-format with nixfmt 2024-03-17 19:48:49 +01:00
Jörg Thalheim
c23a878dfd drop meshnamed from repository
It's not super useful and we can always add it back later if we need it.
2024-03-06 10:02:21 +01:00
lassulus
5ed4881687 vms: use vm fact/secret-store 2024-02-15 10:41:25 +01:00
lassulus
75dfbfdad7 nixosModules zerotier: remove unneeded default 2024-02-07 05:26:01 +01:00
lassulus
3c0541a5b2 nixosModules zerotier: fix type of dns 2024-02-05 02:31:14 +01:00
lassulus
264bceec41 clanCore zerotier: set default values in config for merging 2024-02-03 09:26:04 +01:00
lassulus
888828451a clanCore zerotier: add settings option 2024-02-03 04:48:54 +01:00
lassulus
1a6e99f4ff zerotier generate: retry if port allocation fails 2024-02-01 10:11:30 +01:00
lassulus
5cc2413000 zerotier generate: kill process group 2024-02-01 10:01:28 +01:00
DavHau
af9b4c32e8 Reapply "vm-state: fix and improve testing"
This reverts commit a429ab5d3c.

vm-state: revert sysusers, improve testing

zerotier: enable persistence

vm-state: cleanup tests
2024-01-31 11:02:16 +07:00
a-kenji
14c50dc305 fix zerotier in vms 2024-01-23 19:43:42 +01:00
Jörg Thalheim
234dec62b3 add option to orbit moons 2024-01-12 18:31:18 +01:00
Jörg Thalheim
5e0e4a9a32 zerotier: add support for moons 2024-01-12 18:26:00 +01:00
Jörg Thalheim
40a2d89431 zerotier: configure alternative tcp fallback relay 2024-01-12 15:13:20 +01:00
Jörg Thalheim
5dd222eb69 zerotier: set interface altname 2024-01-11 15:51:34 +01:00
Jörg Thalheim
449b884231 zerotier: use configuration file instead to set the network name 2024-01-11 14:57:00 +01:00
Jörg Thalheim
7e644a2054 make zerotier name configureable 2024-01-11 14:57:00 +01:00
Jörg Thalheim
ab381dfb75 zerotier: delete old networks 2024-01-11 13:24:00 +01:00
Jörg Thalheim
eb42320d14 open up zerotier ports 2024-01-10 17:24:41 +00:00
clan-bot
1338282c62 Merge pull request 'backups: add clanCore backup & clan borgbackup module' (#605) from lassulus-backups into main 2023-12-04 16:51:33 +00:00
lassulus
83dd430d03 implement backup cli for borgbackup 2023-12-04 17:47:23 +01:00
Jörg Thalheim
59d1829f4d disallow variable shadowing 2023-11-30 14:31:37 +01:00
Jörg Thalheim
01dbcec6a1 make type checking more strict 2023-11-30 14:31:37 +01:00
Jörg Thalheim
f208bc0f22 add option to extend path for generator 2023-11-30 14:15:40 +01:00
Jörg Thalheim
d6bb782d74 zerotier: also install identity secrets for non-controllers 2023-11-15 11:07:03 +01:00
Jörg Thalheim
80b902a924 move resolved configuration to a dummy interface 2023-11-15 11:07:03 +01:00
Jörg Thalheim
74fa1c2614 zerotier: fix eval if meshname is not known yet 2023-11-15 07:21:26 +01:00
Jörg Thalheim
92aa60ff2e zerotier: also enable meshnamed for non-controllers 2023-11-14 17:45:30 +01:00
Jörg Thalheim
d04e807269 zerotier: write hostname to file 2023-11-14 17:45:30 +01:00
Jörg Thalheim
65e09aebea enable meshnamed in zerotier module 2023-11-14 14:40:26 +01:00
Jörg Thalheim
ed237ac078 zerotier: add leading zeros at subnet 2023-11-14 14:25:58 +01:00
Jörg Thalheim
087157b4bf zerotier: compute ipv6 subnets 2023-11-14 14:04:05 +01:00
Jörg Thalheim
763d0fc252 drop zerotier-subnet, we can compute this. 2023-11-14 13:50:44 +01:00
Jörg Thalheim
7fd0f1fbb7 add module for meshnamed 2023-11-14 12:58:15 +01:00