]> Git — Sourcephile - sourcephile-nix.git/blob - machines/mermet.nix
openvpn: bitmask-vpn key no longer works
[sourcephile-nix.git] / machines / mermet.nix
1 # NixOS configuration of mermet.sourcephile.fr
2 # Laurent Mermet (1955-2019), strategist for the environment
3 # https://www.iddri.org/fr/iddri-en-bref/la-vie-de-liddri/hommage-laurent-mermet
4 { inputs, ... }:
5 {
6 system = "x86_64-linux";
7 extraArgs = rec {
8 ipv4 = "80.67.180.129";
9 wireguard = rec {
10 wg-intra = {
11 ipv4 = "192.168.42.1";
12 listenPort = 43642;
13 persistentKeepalive = null;
14 peer = {
15 publicKey = "XbTEP2X71LBTjmdmySdiOpQJ+uIomcXvg1aiQGUtWBI=";
16 allowedIPs = [ "${wg-intra.ipv4}/32" ];
17 endpoint = "${ipv4}:${toString wg-intra.listenPort}";
18 };
19 };
20 };
21 };
22 modules = [
23 (inputs.nixpkgs + "/nixos/modules/profiles/hardened.nix")
24 ../nixos/defaults.nix
25 mermet/acme.nix
26 mermet/croc.nix
27 mermet/coturn.nix
28 mermet/debug.nix
29 mermet/dovecot.nix
30 mermet/fail2ban.nix
31 mermet/fileSystems.nix
32 mermet/gitolite.nix
33 mermet/hardware.nix
34 mermet/knot.nix
35 #mermet/mlmmj.nix
36 mermet/murmur.nix
37 mermet/networking.nix
38 mermet/nginx.nix
39 mermet/openldap.nix
40 mermet/postfix.nix
41 mermet/public-inbox.nix
42 mermet/redis.nix
43 mermet/rspamd.nix
44 mermet/sanoid.nix
45 mermet/security.nix
46 mermet/system.nix
47 mermet/unbound.nix
48 mermet/users.nix
49 (inputs.secrets + "/machines/mermet/users.nix")
50 ];
51 }