nix-config/config/services/octoprint.nix

19 lines
471 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 costestimation themeify dashboard];
extraConfig = {
accessControl = {
addRemoteUser = true;
trustRemoteUser = true;
remoteUserHeader = "X-User";
};
};
};
}