mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 11:43:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			344 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			344 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  pkgs,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
 | 
						|
let
 | 
						|
  cfg = config.nmasur.presets.programs.calibre;
 | 
						|
in
 | 
						|
 | 
						|
{
 | 
						|
 | 
						|
  options.nmasur.presets.programs.calibre.enable = lib.mkEnableOption "Calibre e-book manager";
 | 
						|
 | 
						|
  config = lib.mkIf cfg.enable {
 | 
						|
    home.packages = [ pkgs.calibre ];
 | 
						|
    home.sessionVariables = {
 | 
						|
      CALIBRE_USE_DARK_PALETTE = 1;
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |