fix: split up 3d module
This commit is contained in:
@@ -39,6 +39,10 @@
|
|||||||
xdg.userDirs.createDirectories = false;
|
xdg.userDirs.createDirectories = false;
|
||||||
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
||||||
|
|
||||||
|
modules."3d" = {
|
||||||
|
printing.enable = true;
|
||||||
|
modeling.enable = true;
|
||||||
|
};
|
||||||
ai-tools.opencode.enable = true;
|
ai-tools.opencode.enable = true;
|
||||||
browser.primary = "librewolf";
|
browser.primary = "librewolf";
|
||||||
cloud.hetzner.enable = true;
|
cloud.hetzner.enable = true;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
|
../../modules/3d
|
||||||
../../modules/ai-tools
|
../../modules/ai-tools
|
||||||
../../modules/anki
|
../../modules/anki
|
||||||
../../modules/audio
|
../../modules/audio
|
||||||
@@ -37,6 +38,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".printing.enable = true;
|
||||||
ai-tools.opencode.enable = true;
|
ai-tools.opencode.enable = true;
|
||||||
browser.primary = "librewolf";
|
browser.primary = "librewolf";
|
||||||
cloud.hetzner.enable = true;
|
cloud.hetzner.enable = true;
|
||||||
|
|||||||
@@ -1,11 +1,32 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
config,
|
||||||
bambu-studio
|
lib,
|
||||||
blender
|
pkgs,
|
||||||
openscad-lsp
|
...
|
||||||
openscad-unstable
|
}:
|
||||||
orca-slicer
|
|
||||||
|
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