2025-04-07 01:16:03 +03:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
custom.nextcloud_domain = "idacloud.sinerva.eu";
|
2025-04-20 13:55:46 +03:00
|
|
|
services.nextcloud.settings.trusted_domains = [ "idacloud.vsinerva.fi" ];
|
2025-04-20 23:15:51 +03:00
|
|
|
custom.collabora_domain = "idacollab.sinerva.eu";
|
2025-04-07 01:16:03 +03:00
|
|
|
|
|
|
|
imports = [
|
2025-06-01 14:15:50 +03:00
|
|
|
../../shared/base.nix
|
2025-06-05 00:37:07 +03:00
|
|
|
../../shared/hardware/vm.nix
|
2025-06-01 14:15:50 +03:00
|
|
|
../../servers/nextcloud.nix
|
2025-04-07 01:16:03 +03:00
|
|
|
];
|
|
|
|
|
2025-04-20 12:54:09 +03:00
|
|
|
# Networking conf including WireGuard
|
|
|
|
networking = {
|
|
|
|
firewall.allowedUDPPorts = [ 51822 ];
|
|
|
|
|
|
|
|
wg-quick.interfaces = {
|
|
|
|
wg0 = {
|
|
|
|
address = [ "10.1.0.1/24" ];
|
|
|
|
privateKeyFile = "/root/wireguard-keys/privatekey";
|
|
|
|
listenPort = 51822;
|
|
|
|
|
|
|
|
peers = [
|
|
|
|
# Laptop
|
2025-05-25 19:54:16 +03:00
|
|
|
{
|
|
|
|
publicKey = "qJl6XBAGlmGHLre+RoCLUsZUrOrDgGoinREHFiw29ys=";
|
|
|
|
presharedKeyFile = "/root/wireguard-keys/psk1";
|
|
|
|
allowedIPs = [ "10.1.0.2/32" ];
|
|
|
|
}
|
2025-04-20 12:54:09 +03:00
|
|
|
# Phone
|
|
|
|
# {
|
|
|
|
# publicKey = "TODO";
|
|
|
|
# presharedKeyFile = "/root/wireguard-keys/psk2";
|
|
|
|
# allowedIPs = [ "10.1.0.3/32" ];
|
|
|
|
# }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2025-04-07 01:16:03 +03:00
|
|
|
}
|