mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 18:16:13 +01:00
d3e46e5413
Signed-off-by: Magic_RB <magic_rb@redalder.org>
25 lines
525 B
Nix
25 lines
525 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.magic_rb.packageCollections."3dPrinting";
|
|
inherit (config.magic_rb.pkgs) nixpkgs-unstable;
|
|
in
|
|
{
|
|
options.magic_rb.packageCollections."3dPrinting" = {
|
|
enable = mkEnableOption
|
|
''
|
|
Enable 3D printing package collection, contains Prusa Slicer,
|
|
Cura, OpenSCAD, and inkscape."
|
|
'';
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
openscad
|
|
cura
|
|
inkscape
|
|
nixpkgs-unstable.prusa-slicer
|
|
];
|
|
};
|
|
}
|