feat(photography): add enable option
This commit is contained in:
@@ -58,6 +58,7 @@
|
|||||||
git.github.enable = true;
|
git.github.enable = true;
|
||||||
shell.bash.aliases.lang-js = true;
|
shell.bash.aliases.lang-js = true;
|
||||||
shell.bash.addBinToPath = true;
|
shell.bash.addBinToPath = true;
|
||||||
|
photography.enable = true;
|
||||||
torrenting.enable = true;
|
torrenting.enable = true;
|
||||||
my.yubikey.enable = true;
|
my.yubikey.enable = true;
|
||||||
zk.enable = true;
|
zk.enable = true;
|
||||||
|
|||||||
@@ -1,7 +1,21 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
config,
|
||||||
darktable
|
lib,
|
||||||
];
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.photography;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.photography = {
|
||||||
|
enable = lib.mkEnableOption "photography";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
darktable
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user