{ pkgs, lib, config, ... }: let cfg = config._archetypes.collections.desktop.cad; in { options._archetypes.collections.desktop.cad = { enable = lib.mkEnableOption "install cad and 3d printing software"; }; config = lib.mkIf cfg.enable { environment.systemPackages = with pkgs; [ blender freecad prusa-slicer ]; # TODO remove once #467783 is resolved environment.sessionVariables = { # Make GTK3 file-chooser settings discoverable # per https://github.com/NixOS/nixpkgs/issues/467783#issuecomment-3648708206 GSETTINGS_SCHEMA_DIR ="${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}/glib-2.0/schemas"; }; }; }