nixos/octoprint: fix ipv6 host (#351721)

This commit is contained in:
Felix Bühler 2024-10-31 21:37:02 +01:00 committed by GitHub
commit 031b2f0a77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,10 +5,9 @@ let
baseConfig = {
plugins.curalegacy.cura_engine = "${pkgs.curaengine_stable}/bin/CuraEngine";
server.host = cfg.host;
server.port = cfg.port;
webcam.ffmpeg = "${pkgs.ffmpeg.bin}/bin/ffmpeg";
};
} // lib.optionalAttrs (cfg.host != null) {server.host = cfg.host;};
fullConfig = lib.recursiveUpdate cfg.extraConfig baseConfig;
@ -29,8 +28,8 @@ in
enable = lib.mkEnableOption "OctoPrint, web interface for 3D printers";
host = lib.mkOption {
type = lib.types.str;
default = "0.0.0.0";
type = lib.types.nullOr lib.types.str;
default = null;
description = ''
Host to bind OctoPrint to.
'';