hosts/beltane: Fix network by adding profile

This commit is contained in:
kat witch 2021-09-07 06:25:31 +01:00
parent 0c17f85fc8
commit 95d81f3832
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
3 changed files with 3 additions and 6 deletions

View file

@ -7,6 +7,7 @@ with lib;
imports = with meta; [
profiles.hardware.rm-310
profiles.network
profiles.gui
users.kat.guiFull
services.fusionpbx
@ -112,10 +113,6 @@ with lib;
};
};
};
wireguard = {
enable = true;
tf.enable = true;
};
yggdrasil = {
enable = true;
pubkey = "d3e488574367056d3ae809b678f799c29ebfd5c7151bb1f4051775b3953e5f52";

View file

@ -4,7 +4,7 @@
boot.supportedFilesystems = [ "nfs" ];
fileSystems."/mnt/kat-nas" = lib.mkIf (config.networking.hostName != "beltane") {
device = "${meta.network.nodes.beltane.network.addresses.private.domain}:/mnt/zraw/media";
device = "${meta.network.nodes.beltane.network.addresses.wireguard.domain}:/mnt/zraw/media";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "nfsvers=4" "soft" "retrans=2" "timeo=60" ];
};

View file

@ -9,7 +9,7 @@ with lib;
};
services.nfs.server.enable = true;
services.nfs.server.exports = "/mnt/zraw/media 192.168.1.0/24(rw) 200::/7(rw) 2a00:23c7:c597:7400::/56(rw)";
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" ];