Commit Graph

440 Commits

Author SHA1 Message Date
Jörg Thalheim
31144c88e8 container driver: add wait_until_succeeds 2024-09-24 12:52:53 +02:00
Jörg Thalheim
6fef7c9aa7 fix container test after systemd update 2024-09-24 12:52:53 +02:00
Jörg Thalheim
8a8b473236 rename hw-generate to update-hardware-config 2024-09-20 13:42:18 +02:00
Qubasa
3e210f3338 checks: Fix flash test 2024-09-15 16:41:34 +02:00
Jörg Thalheim
a1e2a0513c clanModules.nginx: replace acme fact with concrete value
We shouldn't abuse prompts to require a user to set an option. Instead
our NixOS modules should expose which option need to be specified by the
user.
2024-09-11 11:45:23 +02:00
a-kenji
b13ed922b1 Revert "Merge pull request 'machine_id_v2' (#2052) from Qubasa/clan-core:machine_id_v2 into main"
This reverts commit 22a11abfe5, reversing
changes made to 208b71ac0e.
2024-09-10 14:01:12 +02:00
Qubasa
5c975a5eef clanCore: init machineId and diskId v2 2024-09-09 15:51:31 +02:00
Qubasa
2efa096d29 revert machine_id pull request 2024-09-06 21:38:50 +02:00
Qubasa
4171d5ea4e clanCore: init machine_id.nix with clan.core.machine.{id,diskId} 2024-09-06 18:05:40 +02:00
Jörg Thalheim
d3afda4d6c container-driver: use own Exception 2024-09-03 18:13:18 +02:00
Qubasa
e35fd0976a nixosModules: remove unnecessary ./iso and disk-layout, clanModules: fix issue #1349 2024-09-03 00:09:45 +02:00
DavHau
6e16e54968 vars: make simplify vars store abstraction 2024-09-02 18:44:00 +02:00
Jörg Thalheim
8fbc76ecac add FA, ICN, ISC, LOG, PIE and PYI linting 2024-09-02 15:41:56 +02:00
clan-bot
8760ed89a3 Merge pull request 'Flake: nixos-facter-module with flake: false' (#1986) from hsjobeki/clan-core:hsjobeki-main into main 2024-09-02 12:36:35 +00:00
Johannes Kirschbauer
91ea8b23ca nixos tests: add documentation machine 2024-09-02 14:32:01 +02:00
Jörg Thalheim
ddaf44a91b move all ruff settings in one place 2024-09-02 14:07:06 +02:00
Jörg Thalheim
e150b37fb8 enable ASYNC, DTZ, YTT and EM lints 2024-09-02 14:07:06 +02:00
Jörg Thalheim
d4d7085397 sync up linter rules in all files 2024-09-02 13:40:15 +02:00
Johannes Kirschbauer
0f823c3eac Checks: add nixos documentation-check 2024-08-28 11:44:33 +02:00
DavHau
61e1fd7f85 remove clanDir default
The default value for clanDir did not make sense, as it pointed to the directory of the module definition

Also, we should not have a default at this level as all.
2024-08-26 15:41:52 +02:00
Jörg Thalheim
a2471bf3ec hw-generate: add to nixos test 2024-08-24 12:07:22 +02:00
Jörg Thalheim
d365699991 use compliant machine name in installation test 2024-08-24 12:07:22 +02:00
Qubasa
3e2b7f95a4 clanModules: Add vaultwarden module. Add nginx module. Make matrix-synapse subdomain configurable 2024-08-23 18:15:48 +02:00
Jörg Thalheim
3c04199447 Revert "Merge pull request 'clanModules: Init nginx module. matrix-synapse: don't assume domain names' (#1906) from Qubasa/clan-core:Qubasa-new-main into main"
This reverts commit 88d3223ac0, reversing
changes made to f8c20fcbe1.

Apparently this breaks assumptions about matrix: https://git.clan.lol/clan/clan-core/pulls/1906#issuecomment-13184
2024-08-21 10:03:13 +02:00
Qubasa
4bf31c2cf6 clanModules: Add acme secret prompt for nginx 2024-08-19 12:53:15 +02:00
Qubasa
e4821a33cb clanModules: Init vaultwarden, the bitwarden server 2024-08-19 12:00:35 +02:00
DavHau
6c1c615c60 devshell: remove dependency on clan-cli
This stops the devshell from being re-built constantly, when the source code changes.

Based on a new feature in treefmt-nix: https://github.com/numtide/treefmt-nix/pull/208
2024-08-03 22:37:03 +07:00
Qubasa
fb4ceebccf formatter.nix: Add prettier 2024-08-02 18:56:53 +02:00
a-kenji
617ba9b265 checks/mumble: improve dependency closure 2024-07-30 13:11:50 +02:00
a-kenji
e37a6366d8 mumble: init clan-module
This adds the `mumble` clan-module.

This allows for voice chatting in a true peer-to-peer network.
Every machine that has the module enabled is a potential host and
client - every participant has the same role.

It doesn't matter who in the network is online - as long as one of the
machines is up, one server is up and people can start their voice chat.
2024-07-30 10:55:08 +02:00
DavHau
e7d5a6f854 impure-checks: improve performance by disabling dynamic deps 2024-07-16 12:42:45 +07: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
Johannes Kirschbauer
cbb78ca1ae ClanModules: Add docs and api to retrieve metadata 2024-06-25 21:17:01 +02:00
Jörg Thalheim
e68ebc8d6c 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
DavHau
4db2e8303f refactor: rename clanCore -> clan.core 2024-06-18 18:32:40 +07:00
Jörg Thalheim
682566603a fix restore if database does not exists 2024-06-17 14:21:45 +02:00
Jörg Thalheim
c47bd20f29 container-driver: source nixos environment variables in test commands 2024-06-14 11:27:06 +02:00
Jörg Thalheim
ae088147bc matrix-synapse: use upstream patch to create users declarativly 2024-06-14 11:27:06 +02:00
Jörg Thalheim
fa78cc0163 matrix-synapse: use registration_shared_secret_path instead 2024-06-14 11:18:09 +02:00
Jörg Thalheim
a6144220ca matrix-synapse: fix user check 2024-06-14 11:18:09 +02:00
Jörg Thalheim
6d3ec1852e matrix-synapse: add automatic user creation 2024-06-11 13:19:18 +02:00
Jörg Thalheim
0ebd805092 backups: extend tests to also check state.preBackupCommand 2024-06-10 15:57:41 +02:00
Jörg Thalheim
70c86efe6f backup: add a way to stop services before restoring a state. 2024-06-06 17:30:35 +02:00
Jörg Thalheim
46530a0a9c postgresql: add backup and restore 2024-06-06 14:28:50 +02:00
Jörg Thalheim
c550261d40 postgresql: add new method to create users and databases 2024-06-06 14:07:56 +02:00
Jörg Thalheim
4822fbc80e add postgresql backup hooks 2024-06-06 13:27:30 +02:00
Jörg Thalheim
13005a2aef matrix-enable: drop enable option 2024-06-06 13:27:30 +02:00
Jörg Thalheim
e4a7f27b7c upgrade nix in development to latest
Better error messages!!
2024-05-31 16:37:07 +02:00