enable calibre on macos through homebrew

broken build from nix on macos
This commit is contained in:
Noah Masur committed 2026-08-10 09:29:44 -04:00
1 parent e70661a623
commit 4047cae211
2 files changed
+7 -1

No files matched your search

@@ -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
'';
};
}
@@ -25,6 +25,7 @@ in
menubar.enable = lib.mkDefault true;
};
programs = {
calibre.enable = lib.mkDefault true;
fish-darwin.enable = lib.mkDefault true;
homebrew.enable = lib.mkDefault true;
nixpkgs-darwin.enable = lib.mkDefault true;