mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: split config more
This commit is contained in:
27
modules/nixos/usecases/3d-printing.nix
Normal file
27
modules/nixos/usecases/3d-printing.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.usecases."3d-printing";
|
||||
in
|
||||
{
|
||||
options.usecases."3d-printing" = {
|
||||
enable = mkEnableOption "Enable 3d printing stuff";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
lpc21isp
|
||||
dfu-util
|
||||
cura
|
||||
openscad-unstable
|
||||
freecad
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user