nix-config/config/services/octoprint.nix

31 lines
780 B
Nix

{ config, inputs, ... }:
{
disabledModules = [ "services/misc/octoprint.nix" ];
imports = [ "${inputs.nixpkgs-octoprint}/nixos/modules/services/misc/octoprint.nix" ];
wireguard.elisabeth = {
client.via = "elisabeth";
firewallRuleForNode.elisabeth.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";
};
};
};
}