mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 16:32:56 +00:00
d021baa1bb
required because they don't share all attributes
20 lines
493 B
Nix
20 lines
493 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
options = {
|
|
calibre = {
|
|
enable = lib.mkEnableOption {
|
|
description = "Enable Calibre.";
|
|
default = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (config.gui.enable && config.calibre.enable) {
|
|
home-manager.users.${config.user} = {
|
|
home.packages = with pkgs; [ calibre ];
|
|
# home.sessionVariables = { CALIBRE_USE_DARK_PALETTE = 1; };
|
|
};
|
|
environment.sessionVariables = { CALIBRE_USE_DARK_PALETTE = "1"; };
|
|
};
|
|
}
|