lol

nixos/octoprint: fix setting host causing port to be unset

This was because of the non-recursive update of the attrset.

+2 -2
+2 -2
nixos/modules/services/misc/octoprint.nix
··· 8 8 9 9 cfg = config.services.octoprint; 10 10 11 - baseConfig = { 11 + baseConfig = lib.recursiveUpdate { 12 12 plugins.curalegacy.cura_engine = "${pkgs.curaengine_stable}/bin/CuraEngine"; 13 13 server.port = cfg.port; 14 14 webcam.ffmpeg = "${pkgs.ffmpeg.bin}/bin/ffmpeg"; 15 - } // lib.optionalAttrs (cfg.host != null) { server.host = cfg.host; }; 15 + } (lib.optionalAttrs (cfg.host != null) { server.host = cfg.host; }); 16 16 17 17 fullConfig = lib.recursiveUpdate cfg.extraConfig baseConfig; 18 18