mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
nixos/octoprint: fix ipv6 host (#351721)
This commit is contained in:
commit
031b2f0a77
@ -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.
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user