nix-config/modules/home/calibre/default.nix

18 lines
317 B
Nix
Raw Normal View History

{ 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" { };
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
2024-07-08 15:10:28 +02:00
cfg.package
];
};
}