{ config, inputs, ... }: { disabledModules = [ "services/misc/octoprint.nix" ]; imports = [ "${inputs.nixpkgs-octoprint}/nixos/modules/services/misc/octoprint.nix" ]; wireguard.services = { client.via = "nucnix"; firewallRuleForNode.nucnix-nginx.allowedTCPPorts = [ config.services.octoprint.port ]; }; environment.persistence."/persist".directories = [ { directory = "/var/lib/octoprint/"; user = "octoprint"; group = "octoprint"; mode = "750"; } ]; services.octoprint = { port = 3000; enable = true; plugins = ps: with ps; [ ender3v2tempfix ]; settings = { accessControl = { #addRemoteUsers = true; #trustRemoteUser = true; remoteUserHeader = "X-User"; }; }; }; }