summaryrefslogtreecommitdiff
path: root/archetypes/collections/desktop/cad.nix
blob: 6b2c26ba05a9ec22921c6e977d008cc258e270df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ 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";
		};
	};
}