This repository has been archived on 2024-11-22. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-old/modules/desktop/cad.nix

29 lines
893 B
Nix
Raw Normal View History

/* -------------------------------------------------------------------------- */
/* Computer-Aided Design config */
/* -------------------------------------------------------------------------- */
{ lib, config, options, pkgs, ... }:
with lib;
let cfg = config.modules.desktop.cad;
in {
options.modules.desktop.cad = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
/* -------------------------------- Polygonal ------------------------------- */
(blender.override {
# Allows GPU support for Cycles
cudaSupport = true;
})
/* ------------------------------- Parametric ------------------------------- */
openscad
freecad
/* ---------------------------------- Voxel --------------------------------- */
];
};
}