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
DavHau
208021ee1c
reference docs: add missing description fields and enforce it from now on
2024-07-04 13:34:55 +07:00
Johannes Kirschbauer
dc583ece4f
clanModules: init packages
2024-07-03 12:31:53 +02:00
Johannes Kirschbauer
fc31d1aae7
Fix frontmatter of module
2024-07-03 11:57:15 +02:00
Johannes Kirschbauer
186784d0fd
clanModules: init single disk
2024-07-03 11:05:00 +02:00
a-kenji
975d4487bf
zerotier-static: halalify all packages
2024-07-02 13:14:26 +02:00
a-kenji
88cd52fd0f
zerotier-peers: use halalified package
2024-07-02 10:24:07 +00:00
Johannes Kirschbauer
5ab22d043d
api: clan Modules add readme content
2024-07-02 11:45:48 +02:00
Jörg Thalheim
cfc09ca270
sshd: workaround for CVE-2024-6387
2024-07-01 14:01:40 +02: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
Johannes Kirschbauer
26c655ff3c
Add settings.json back
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
712ed3f738
Docs: add inventory module docs
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
b74590f381
Inventory: simplify build-clan interface
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
2f8b782a1f
Inventory: init module merge & validation logic for inventory
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
c89080deb4
Extend build-clan interface
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
e44b07df66
inventory: rename clan.services
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
afca7ae0cc
update inventory implementation
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
5f72778ade
schema improvements
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
d934b67c72
Inventory: implement borgbackup
2024-06-25 12:23:29 +00:00
Qubasa
38c0233496
clan-cli: Fix user-password without user-prompt. Remove newlines from user-password and root-password. Improve test_generate_secret
2024-06-24 20:08:02 +02:00
Qubasa
8038a9b488
clan-cli: Add validity check for ssh
...
stash
2024-06-24 19:22:19 +02:00
Jörg Thalheim
20b952b4cd
fix dropping non-existing database
2024-06-19 18:00:51 +02:00
Jörg Thalheim
aa5ccfb8bd
clanCore -> clan.core
2024-06-19 17:55:59 +02:00
Jörg Thalheim
ef9ed1ebea
clan.core.state: wrap all commands in shell scripts
...
Otherwise we cannot execute them via ssh and also have nix store
dependencies.
2024-06-19 17:54:46 +02:00
Jörg Thalheim
117aed49e3
postgresql: don't prepend postgresql- for states
2024-06-19 17:38:31 +02:00
DavHau
313db5643f
refactor: rename clanCore -> clan.core
2024-06-18 18:32:40 +07:00
Jörg Thalheim
c79680344d
fix restore if database does not exists
2024-06-17 14:21:45 +02:00
Jörg Thalheim
ad544a7d24
matrix-synapse: restart service on restore
2024-06-17 14:21:45 +02:00
Jörg Thalheim
870948306d
postgres: handle restores without associated systemd service
2024-06-14 11:29:59 +02:00
Jörg Thalheim
e3d84a5daf
matrix-synapse: use upstream patch to create users declarativly
2024-06-14 11:27:06 +02:00
Jörg Thalheim
79b5ad0754
matrix-synapse: use registration_shared_secret_path instead
2024-06-14 11:18:09 +02:00
Jörg Thalheim
24b0d72d96
matrix-synapse: fix user check
2024-06-14 11:18:09 +02:00
Jörg Thalheim
084cd8751f
postgresql: move postRestoreCommand to a dedicated command
...
We need to call this command from the cli
2024-06-14 11:18:09 +02:00
Johannes Kirschbauer
913ab4627c
Webview: init 'open clan' workflow
2024-06-11 16:28:02 +02:00
Jörg Thalheim
36b1bb65af
matrix-synapse: add missing xkcdpass to password generator
2024-06-11 15:40:58 +02:00
Jörg Thalheim
3dabb4e89a
matrix-synapse: drop drop security.wrappers
...
This was debug code and not meant for production.
2024-06-11 13:32:58 +00:00
Jörg Thalheim
5df1f9f9d2
matrix-synapse: don't require to set default users
2024-06-11 15:12:41 +02:00
Jörg Thalheim
bc0e0088a0
matrix-synapse: add automatic user creation
2024-06-11 13:19:18 +02:00
a-kenji
67aa84760d
borbackup: set IdentitiesOnly=Yes
...
Since `borgbackup` is run as root user it might try other ssh keys.
2024-06-10 14:09:14 +00:00
clan-bot
a1acf0b05d
Merge pull request 'Expand backup and restore capabilities w.r.t. postgresql.' ( #1582 ) from synapse into main
2024-06-10 13:24:08 +00:00
Jörg Thalheim
66bdc61e3d
borgbackup: move preBackupScript to a different systemd context
2024-06-10 15:17:46 +02:00
a-kenji
297d53dac8
syncthing: automatically add zt network ip to devices
2024-06-07 14:25:21 +02:00
Jörg Thalheim
5c11a30b46
backup: add a way to stop services before restoring a state.
2024-06-06 17:30:35 +02:00
Jörg Thalheim
0dc3b9f056
postgresql: add backup and restore
2024-06-06 14:28:50 +02:00
Jörg Thalheim
c0d8aaf73a
postgresql: add new method to create users and databases
2024-06-06 14:07:56 +02:00
Jörg Thalheim
2a0019457d
matrix-synapse: create with utf-8 encoding
2024-06-06 14:07:56 +02:00
Jörg Thalheim
6dec2a9222
add postgresql backup hooks
2024-06-06 13:27:30 +02:00