fix: split up 3d module
This commit is contained in:
@@ -39,6 +39,10 @@
|
||||
xdg.userDirs.createDirectories = false;
|
||||
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
||||
|
||||
modules."3d" = {
|
||||
printing.enable = true;
|
||||
modeling.enable = true;
|
||||
};
|
||||
ai-tools.opencode.enable = true;
|
||||
browser.primary = "librewolf";
|
||||
cloud.hetzner.enable = true;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
{
|
||||
imports = [
|
||||
../../modules
|
||||
../../modules/3d
|
||||
../../modules/ai-tools
|
||||
../../modules/anki
|
||||
../../modules/audio
|
||||
@@ -37,6 +38,7 @@
|
||||
xdg.userDirs.createDirectories = false;
|
||||
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
||||
|
||||
modules."3d".printing.enable = true;
|
||||
ai-tools.opencode.enable = true;
|
||||
browser.primary = "librewolf";
|
||||
cloud.hetzner.enable = true;
|
||||
|
||||
@@ -1,11 +1,32 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
bambu-studio
|
||||
blender
|
||||
openscad-lsp
|
||||
openscad-unstable
|
||||
orca-slicer
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.modules."3d";
|
||||
in
|
||||
{
|
||||
options.modules."3d" = {
|
||||
printing.enable = lib.mkEnableOption "3D printing tools";
|
||||
modeling.enable = lib.mkEnableOption "3D modeling tools";
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf cfg.printing.enable {
|
||||
home.packages = with pkgs; [
|
||||
bambu-studio
|
||||
orca-slicer
|
||||
];
|
||||
})
|
||||
(lib.mkIf cfg.modeling.enable {
|
||||
home.packages = with pkgs; [
|
||||
blender
|
||||
openscad-lsp
|
||||
openscad-unstable
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user