Commit Graph

310 Commits

Author SHA1 Message Date
a-kenji
f6466ead04 clanModules/root-password: Add inventory feature 2025-02-02 10:35:48 +00:00
a-kenji
2fb312ccc1 clanModules/root-password: Add inventory feature 2025-02-02 10:32:58 +00:00
a-kenji
51113eb656 clanModules/root-password: Fix root-password persistence 2025-02-02 16:36:19 +07:00
a-kenji
42e0928b55 clanModules/mycelium: init mycelium
This adds a clanModule for `mycelium`.
`Mycelium` is an IPv6 overlay network written in Rust.
Each node that joins the overlay network will receive an overlay network IP in the 400::/7 range.

An example configuration might look like this in the inventory:

```nix
mycelium.default = {
  roles.peer.machines = [
    "berlin"
    "munich"
  ];
  config = {
    topLevelDomain = "m";
    openFirewall = true;
    addHostedPublicNodes = true;
  };
};
```

This will add the machines named `berlin` and `munich` to the `mycelium` vpn.
And will also set the toplevel domain of the mycelium vpn to `m`, meaning the
machines are now reachable via `berlin.m` and `munich.m`.
2025-01-22 11:56:10 +00:00
DavHau
5ce72dd261 tests: reduce unnecessary rebuilds of several tests
Some test were referring to the whole source code via ${self} which amde them rebuild on every single commit.

This is not mitigated by introduceing `self.filter { include = [...]; }` allowin to a content addressed subset of the source code in tests.
2025-01-17 17:00:18 +07:00
Pablo Ovelleiro Corral
038083bece Migrate borgbackup module to vars 2025-01-16 13:14:24 +01:00
Johannes Kirschbauer
021cb6274f Root-password: remove deprecated default option 2025-01-14 17:28:12 +01:00
Johannes Kirschbauer
10d7078c1e Fixup: improve mkpasswd generator line 2025-01-14 17:19:50 +01:00
Johannes Kirschbauer
be0b9c4e0e Vars: migrate root-password from facts 2025-01-14 17:19:50 +01:00
Jörg Thalheim
9b885f54af matrix-synapse: migrate to vars 2025-01-14 14:16:19 +00:00
DavHau
4a9ae3a45f vars: rename createFile -> persist 2025-01-11 04:19:46 +00:00
Jörg Thalheim
4893827f04 create synapse registration in systemd service instead of systemd.tmpfiles 2025-01-10 12:45:00 +01:00
Qubasa
fe33c69641 clanModules: fix broken dyndns build 2025-01-02 13:20:43 +01:00
Johannes Kirschbauer
db5f934869 Docs: fix all broken anchor references 2024-12-31 15:43:20 +01:00
Johannes Kirschbauer
d46ffe9f4a Chore:_migrate 'machineName' to 'settings.machine.name' 2024-12-31 14:55:50 +01:00
Johannes Kirschbauer
315be52e34 Chore: init settings submdule, move clanDir into settings submodule 2024-12-31 14:18:09 +01:00
Qubasa
52b40797d5 clanModules: migrate dyndns to vars. 2024-12-30 19:27:46 +01:00
Qubasa
4717c46662 clanModules: fix dyndns porkbun support 2024-12-30 18:47:38 +01:00
Jörg Thalheim
be79b5d6aa sshd: don't migrate openssh-rsa keys
we never had a fact for this.
2024-12-25 23:05:57 +01:00
Jörg Thalheim
877f6b1b52 sshd: add option to generate also rsa key 2024-12-25 22:51:53 +01:00
Jörg Thalheim
bf0e3d3642 re-generate ssh certificates when machine name or domains changes 2024-12-25 19:21:51 +00:00
Jörg Thalheim
077f5415b0 borgbackup: use writeShellApplication 2024-12-24 07:29:50 +01:00
Jörg Thalheim
50c52dd099 borgbackup: make restore less verbose 2024-12-24 07:12:54 +01:00
Jörg Thalheim
316478087a borgbackup: avoid broken pipe 2024-12-24 07:12:54 +01:00
Jörg Thalheim
ed11bff94f borgbackup-list: use pipefail 2024-12-24 07:11:00 +01:00
Jörg Thalheim
c0ff99863d borgbackup-list: fix empty backup case 2024-12-24 07:11:00 +01:00
Jörg Thalheim
98125a34b4 clanModules/borgbackup: make backup directory configurable
This is useful if your have external storage for it.
2024-12-19 20:22:49 +01:00
DavHau
f1e03ecdcf refactor: mapAttrsFlatten -> mapAttrsToList 2024-12-16 23:50:27 +07:00
DavHau
6216d83115 wifi: make available for non-inventory use 2024-12-16 22:24:49 +07:00
DavHau
dead3b0f90 clanModules/wifi: make ssid a secret 2024-12-16 19:04:42 +07:00
Jörg Thalheim
cf2033441c no longer use deprecated hardware.opengl 2024-12-11 17:44:09 +00:00
lassulus
c4cb1533a7 postgresql: nix fmt 2024-12-09 12:57:23 +01:00
DavHau
06f0e495ce zerotier: improve docs for moons 2024-12-02 15:50:49 +07:00
DavHau
32332e8460 wifi: init as experimental module 2024-11-28 15:49:23 +07:00
Johannes Kirschbauer
a6b35f70c6 ClanModules/zerotier: simplify nix code 2024-11-26 10:44:06 +00:00
Johannes Kirschbauer
b3164076d5 Docs/modules: seperate out inventory,role specific interface 2024-11-20 11:01:28 +01:00
Johannes Kirschbauer
bb6abd44aa Modules/matter: add more categories 2024-11-19 15:59:23 +00:00
a-kenji
2389e3f73e clanModules: Fix ordering 2024-11-19 14:14:31 +01:00
a-kenji
4b4b3826c8 clanModules/importer: Init importer inventory module
Initialize the `importer` inventory module.
It is a power user module that allows for convenient, flexible,
structured imports for hosts.

It exposes the `extraModules` functionality of the inventory,
without any added configuration.

Closes: #2356
2024-11-19 14:00:57 +01:00
Jörg Thalheim
4759b9528f also deploy host ca to server 2024-11-19 09:46:14 +00:00
Jörg Thalheim
c20085e3c7 sshd: add host ssh cert support 2024-11-19 09:46:14 +00:00
Qubasa
e86543fa03 clan: Fix dyndns module 2024-11-17 13:07:16 +01:00
Johannes Kirschbauer
b4e34e7f40 Zerotier/constraints: small improvements 2024-11-13 13:53:54 +01:00
Johannes Kirschbauer
722012ed55 Modules/constraints: init constraints checking for inventory compatible modules 2024-11-12 18:36:38 +01:00
Johannes Kirschbauer
aa4c653148 Zerotier: add to inventory test machine 2024-11-12 18:36:05 +01:00
a-kenji
16abeddb2f clanModules/zerotier: Add assertion for moons 2024-11-12 15:23:39 +01:00
Jörg Thalheim
671effe3c3 clanModules/zerotier: add documentation 2024-11-08 14:10:23 +00:00
a-kenji
60d7c5d82c add clanModule for zerotier inventory 2024-11-08 14:10:23 +00:00
danjujan
7caa868ecb clanModules: fix typos 2024-10-29 12:37:34 +00:00
Qubasa
8c8e6ac65f Fix iwd space handling 2024-10-16 12:13:51 +07:00