fix(3d): modularize 3D module
check / lint (push) Successful in 15s

This commit is contained in:
hektor committed 2026-10-25 14:37:05 +01:00
1 parent f77dea3e42
commit 2fe2133e70
3 files changed
+23 -13

No files matched your search

+12 -1
View File
@@ -6,7 +6,18 @@
enable = lib.mkEnableOption "3D printing tools";
};
modeling = {
enable = lib.mkEnableOption "3D modeling tools";
blender = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
};
openscad = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
};
};
};
+10 -8
View File
@@ -1,16 +1,18 @@
{
config,
lib,
pkgs,
...
}:
{
config = lib.mkIf config.modules."3d".modeling.enable {
home.packages = with pkgs; [
blender
openscad-lsp
openscad-unstable
];
config = {
home.packages =
with pkgs;
lib.optionals config.modules."3d".modeling.blender.enable [
blender
]
++ lib.optionals config.modules."3d".modeling.openscad.enable [
openscad-lsp
openscad-unstable
];
};
}