39 lines
590 B
Nix
39 lines
590 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options = {
|
|
apps.image = {
|
|
base.enable = lib.mkEnableOption "enable basic image";
|
|
editing.enable = lib.mkEnableOption "enable image editing";
|
|
};
|
|
};
|
|
|
|
config = {
|
|
environment.systemPackages =
|
|
with pkgs;
|
|
[ ]
|
|
++ (
|
|
if (config.apps.image.base.enable) then
|
|
|
|
[ nomacs ]
|
|
else
|
|
[ ]
|
|
)
|
|
++ (
|
|
if (config.apps.image.editing.enable) then
|
|
|
|
[
|
|
gimp3-with-plugins
|
|
krita
|
|
]
|
|
else
|
|
[ ]
|
|
);
|
|
};
|
|
}
|