mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
21 lines
565 B
Nix
21 lines
565 B
Nix
{ config, lib, kw, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
network.firewall = {
|
|
private.tcp.ports = [ 111 2049 ];
|
|
public.tcp.ports = [ 111 2049 ];
|
|
};
|
|
|
|
services.nfs.server.enable = true;
|
|
services.nfs.server.exports = "/mnt/zraw/media 192.168.1.0/24(rw) ${config.network.wireguard.prefixV4}.0/24(rw) fe80::/10(rw) 200::/7(rw) 2a00:23c7:c597:7400::/56(rw)";
|
|
|
|
services.nginx.virtualHosts = kw.virtualHostGen {
|
|
networkFilter = [ "private" "yggdrasil" ];
|
|
block.locations."/" = {
|
|
alias = "/mnt/zraw/media/";
|
|
extraConfig = "autoindex on;";
|
|
};
|
|
};
|
|
}
|