2024-08-19 15:58:24 +02:00
|
|
|
{ config, inputs, ... }:
|
2024-07-26 22:12:48 +02:00
|
|
|
{
|
2024-08-19 15:58:24 +02:00
|
|
|
|
|
|
|
disabledModules = [ "services/misc/octoprint.nix" ];
|
|
|
|
imports = [ "${inputs.nixpkgs-octoprint}/nixos/modules/services/misc/octoprint.nix" ];
|
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
|
|
|
};
|
2024-08-15 13:43:40 +02:00
|
|
|
environment.persistence."/persist".directories = [
|
|
|
|
{
|
|
|
|
directory = "/var/lib/octoprint/";
|
|
|
|
user = "octoprint";
|
|
|
|
group = "octoprint";
|
|
|
|
mode = "750";
|
|
|
|
}
|
|
|
|
];
|
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-08-19 15:58:24 +02:00
|
|
|
settings = {
|
2024-07-12 13:27:08 +02:00
|
|
|
accessControl = {
|
2024-09-05 11:03:17 +02:00
|
|
|
#addRemoteUsers = true;
|
|
|
|
#trustRemoteUser = true;
|
2024-07-13 01:04:40 +02:00
|
|
|
remoteUserHeader = "X-User";
|
2024-07-12 13:27:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|