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

@@ -58,6 +58,7 @@
git.github.enable = true;
shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true;
photography.enable = true;
torrenting.enable = true;
my.yubikey.enable = true;
zk.enable = true;

View File

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