nix-config/config/services/octoprint.nix
2024-07-18 12:29:31 +02:00

19 lines
437 B
Nix

{config, ...}: {
wireguard.elisabeth = {
client.via = "elisabeth";
firewallRuleForNode.elisabeth.allowedTCPPorts = [config.services.octoprint.port];
};
services.octoprint = {
port = 3000;
enable = true;
plugins = ps: with ps; [ender3v2tempfix];
extraConfig = {
accessControl = {
addRemoteUser = true;
trustRemoteUser = true;
remoteUserHeader = "X-User";
};
};
};
}