mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-07-25 10:04:44 +00:00
33 lines
466 B
Nix
33 lines
466 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
username,
|
|
...
|
|
}:
|
|
|
|
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
|
|
openscad
|
|
# orca-slicer
|
|
];
|
|
home-manager.users.${username} = {
|
|
programs = {
|
|
lazygit.enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|