mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 15:43:14 -05:00
19 lines
379 B
Nix
19 lines
379 B
Nix
|
|
{ config, pkgs, lib, ... }:
|
||
|
|
{
|
||
|
|
options = {
|
||
|
|
prusa-slicer = {
|
||
|
|
enable = lib.mkEnableOption {
|
||
|
|
description = "Enable Prusa Slicer";
|
||
|
|
default = false;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
config = lib.mkIf (config.gui.enable && config.prusa-slicer.enable) {
|
||
|
|
home-manager.users.${config.user} = {
|
||
|
|
home.packages = [
|
||
|
|
pkgs.prusa-slicer
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|