home: calibre: add 'package' option

This commit is contained in:
Bruno BELANYI 2024-07-08 13:10:28 +00:00
parent 4943df69ef
commit abb78d63e2

View file

@ -5,11 +5,13 @@ in
{
options.my.home.calibre = with lib; {
enable = mkEnableOption "calibre configuration";
package = mkPackageOption pkgs "calibre" { };
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
calibre
cfg.package
];
};
}