fix(3d): modularize 3D module
This commit is contained in:
1 parent
445bdde2dc
commit
96d838db75
3 files changed
+23
-11
No files matched your search
@@ -19,10 +19,7 @@
|
|||||||
xdg.userDirs.createDirectories = false;
|
xdg.userDirs.createDirectories = false;
|
||||||
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
||||||
|
|
||||||
modules."3d" = {
|
modules."3d".printing.enable = true;
|
||||||
printing.enable = true;
|
|
||||||
modeling.enable = true;
|
|
||||||
};
|
|
||||||
ai-tools = {
|
ai-tools = {
|
||||||
claude-code.enable = true;
|
claude-code.enable = true;
|
||||||
codex.enable = true;
|
codex.enable = true;
|
||||||
|
|||||||
@@ -6,7 +6,18 @@
|
|||||||
enable = lib.mkEnableOption "3D printing tools";
|
enable = lib.mkEnableOption "3D printing tools";
|
||||||
};
|
};
|
||||||
modeling = {
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,15 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.modules."3d".modeling.enable {
|
config = {
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
blender
|
with pkgs;
|
||||||
openscad-lsp
|
lib.optionals config.modules."3d".modeling.blender.enable [
|
||||||
openscad-unstable
|
blender
|
||||||
];
|
]
|
||||||
|
++ lib.optionals config.modules."3d".modeling.openscad.enable [
|
||||||
|
openscad-lsp
|
||||||
|
openscad-unstable
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user