Skip to content

Commit

Permalink
nixos/octoprint: fix ipv6 host (#351721)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey authored Oct 31, 2024
2 parents f1bd785 + a9413c7 commit 031b2f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nixos/modules/services/misc/octoprint.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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.
'';
Expand Down

0 comments on commit 031b2f0

Please sign in to comment.