2023-06-24 17:30:06 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.my.home.calibre;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.home.calibre = with lib; {
|
|
|
|
enable = mkEnableOption "calibre configuration";
|
2024-07-08 15:10:28 +02:00
|
|
|
|
|
|
|
package = mkPackageOption pkgs "calibre" { };
|
2023-06-24 17:30:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
2024-07-08 15:10:28 +02:00
|
|
|
cfg.package
|
2023-06-24 17:30:06 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|