nix-config/config/services/octoprint.nix

31 lines
779 B
Nix
Raw Permalink Normal View History

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-12-20 20:40:27 +01:00
wireguard.services = {
client.via = "nucnix";
firewallRuleForNode.nucnix-nginx.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;
remoteUserHeader = "X-User";
2024-07-12 13:27:08 +02:00
};
};
};
}