nix-config/config/services/octoprint.nix

20 lines
443 B
Nix
Raw Normal View History

2024-07-26 22:12:48 +02:00
{ config, ... }:
{
2024-07-12 13:27:08 +02:00
wireguard.elisabeth = {
client.via = "elisabeth";
2024-07-26 22:12:48 +02:00
firewallRuleForNode.elisabeth.allowedTCPPorts = [ config.services.octoprint.port ];
2024-07-12 13:27:08 +02:00
};
services.octoprint = {
port = 3000;
enable = true;
2024-07-26 22:12:48 +02:00
plugins = ps: with ps; [ ender3v2tempfix ];
2024-07-12 13:27:08 +02:00
extraConfig = {
accessControl = {
addRemoteUser = true;
trustRemoteUser = true;
remoteUserHeader = "X-User";
2024-07-12 13:27:08 +02:00
};
};
};
}