bekkalokk: pull rendered map from gluttony

This commit is contained in:
Vegard Bieker Matthey
2026-05-23 23:36:13 +02:00
parent cbb587f79c
commit 7c4439dbc0

View File

@@ -1,6 +1,7 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, inputs, values, ... }:
let
vanillaSurvival = "/var/lib/bluemap/vanilla_survival_world";
webExport = "/var/lib/bluemap/web";
format = pkgs.formats.hocon { };
in {
# NOTE: our versino of the module gets added in flake.nix
@@ -117,5 +118,22 @@ in {
'';
};
services.rsync-pull-targets = {
enable = true;
locations.${webExport} = {
user = "root";
rrsyncArgs.wo = true;
authorizedKeysAttrs = [
"restrict"
"from=\"gluttony.pvv.ntnu.no,${values.hosts.gluttony.ipv6},${values.hosts.gluttony.ipv4}\""
"no-agent-forwarding"
"no-port-forwarding"
"no-pty"
"no-X11-forwarding"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGYpjmQYs3pKV29/hVCeNQQ/WRmwGdhMEUJvAC99sZEp root@nixos";
};
};
networking.firewall.allowedUDPPorts = [ 443 ];
}