feat(photography): add enable option

This commit is contained in:
2026-05-22 09:49:30 +02:00
parent 8665a36e3a
commit 3dbd301925
2 changed files with 20 additions and 5 deletions

View File

@@ -1,7 +1,21 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
darktable
];
config,
lib,
pkgs,
...
}:
let
cfg = config.photography;
in
{
options.photography = {
enable = lib.mkEnableOption "photography";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
darktable
];
};
}