From ac725bd5e43e63681bb8d32f357316a3b25f8e61 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 24 Jun 2023 16:30:06 +0100 Subject: [PATCH] home: add calibre Ideally I will extend this module to handle the plugin (and dependencies) natively. --- home/calibre/default.nix | 15 +++++++++++++++ home/default.nix | 1 + 2 files changed, 16 insertions(+) create mode 100644 home/calibre/default.nix diff --git a/home/calibre/default.nix b/home/calibre/default.nix new file mode 100644 index 0000000..e0f2069 --- /dev/null +++ b/home/calibre/default.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.home.calibre; +in +{ + options.my.home.calibre = with lib; { + enable = mkEnableOption "calibre configuration"; + }; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + calibre # NOTE: relies on my overlay to add necessary plug-in dependencies + ]; + }; +} diff --git a/home/default.nix b/home/default.nix index 7fbd406..6b6ad36 100644 --- a/home/default.nix +++ b/home/default.nix @@ -5,6 +5,7 @@ ./atuin ./bat ./bluetooth + ./calibre ./comma ./dircolors ./direnv