lol

nixos/octoprint: fix ipv6 host (#351721)

authored by

Felix Bühler and committed by
GitHub
031b2f0a f1bd7856

+3 -4
+3 -4
nixos/modules/services/misc/octoprint.nix
··· 5 5 6 6 baseConfig = { 7 7 plugins.curalegacy.cura_engine = "${pkgs.curaengine_stable}/bin/CuraEngine"; 8 - server.host = cfg.host; 9 8 server.port = cfg.port; 10 9 webcam.ffmpeg = "${pkgs.ffmpeg.bin}/bin/ffmpeg"; 11 - }; 10 + } // lib.optionalAttrs (cfg.host != null) {server.host = cfg.host;}; 12 11 13 12 fullConfig = lib.recursiveUpdate cfg.extraConfig baseConfig; 14 13 ··· 29 28 enable = lib.mkEnableOption "OctoPrint, web interface for 3D printers"; 30 29 31 30 host = lib.mkOption { 32 - type = lib.types.str; 33 - default = "0.0.0.0"; 31 + type = lib.types.nullOr lib.types.str; 32 + default = null; 34 33 description = '' 35 34 Host to bind OctoPrint to. 36 35 '';