2024-04-20 13:42:06 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-05-16 00:21:42 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
options = {
|
|
|
|
calibre = {
|
|
|
|
enable = lib.mkEnableOption {
|
|
|
|
description = "Enable Calibre.";
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf (config.gui.enable && config.calibre.enable) {
|
2022-05-16 00:21:42 +00:00
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
home.packages = with pkgs; [ calibre ];
|
|
|
|
# home.sessionVariables = { CALIBRE_USE_DARK_PALETTE = 1; };
|
|
|
|
};
|
2023-07-31 00:26:23 +00:00
|
|
|
|
|
|
|
# Forces Calibre to use dark mode
|
2024-04-20 13:42:06 +00:00
|
|
|
environment.sessionVariables = {
|
|
|
|
CALIBRE_USE_DARK_PALETTE = "1";
|
|
|
|
};
|
2022-05-16 00:21:42 +00:00
|
|
|
};
|
|
|
|
}
|