]> Git — Sourcephile - sourcephile-nix.git/blob - machines/losurdo.nix
wireguard: setup in initrd
[sourcephile-nix.git] / machines / losurdo.nix
1 # NixOS configuration of losurdo.sourcephile.fr
2 #
3 # Show configuration options with, for example:
4 # nix-instantiate machines/losurdo.nix --eval -A config.networking.hostName
5 # or:
6 # nix eval machines.losurdo.networking.hostName
7 # Install/upgrade with:
8 # nix run config.installer.ssh-nixos -f machines/losurdo.nix
9 # or:
10 # nix run machines.losurdo.installer.ssh-nixos
11 {
12 system = "x86_64-linux";
13 extraArgs = {
14 ipv4 = "80.67.180.251";
15 wireguard = rec {
16 wg-intranet = {
17 ipv4 = "192.168.42.2";
18 listenPort = 43642;
19 #listenPort = null;
20 persistentKeepalive = 25;
21 peer = {
22 publicKey = "xsFFep3k8z0pXgUOz4aryOF8l/KPBSOd4WQA26BkXy0=";
23 allowedIPs = [ "${wg-intranet.ipv4}/32" ];
24 };
25 };
26 };
27 };
28 modules = [
29 ../nixos/defaults.nix
30 ../nixos/profiles/services/unbound.nix
31 losurdo/acme.nix
32 losurdo/debug.nix
33 losurdo/fail2ban.nix
34 losurdo/fileSystems.nix
35 losurdo/hardware.nix
36 losurdo/networking.nix
37 losurdo/nginx.nix
38 losurdo/postgresql.nix
39 losurdo/sanoid.nix
40 losurdo/security.nix
41 losurdo/syncoid.nix
42 losurdo/system.nix
43 losurdo/transmission.nix
44 losurdo/users.nix
45 ];
46 }