enable calibre on macos through homebrew

broken build from nix on macos
This commit is contained in:
Noah Masur
2026-08-10 09:29:44 -04:00
parent e70661a623
commit 4047cae211
2 changed files with 7 additions and 1 deletions
@@ -14,9 +14,14 @@ in
options.nmasur.presets.programs.calibre.enable = lib.mkEnableOption "Calibre e-book manager";
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.calibre ];
home.packages = lib.mkIf pkgs.stdenv.isLinux [ pkgs.calibre ];
home.sessionVariables = {
CALIBRE_USE_DARK_PALETTE = 1;
};
home.file.".Brewfile".text = lib.mkIf pkgs.stdenv.isDarwin /* homebrew */ ''
cask "calibre" # Nix package broken on macOS
'';
};
}