mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00

When using Merkuro in Plasma 6, the 'Contacts' widget will automatically be added to the default panel. Unfortunately, it does not work unless `kdePackages.kcontacts` is also present in the environment. This adds the dependency if Plasma 6 is also enabled alongside Merkuro. Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
46 lines
934 B
Nix
46 lines
934 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.programs.kde-pim;
|
|
in
|
|
{
|
|
options.programs.kde-pim = {
|
|
enable = lib.mkEnableOption "KDE PIM base packages";
|
|
kmail = lib.mkEnableOption "KMail";
|
|
kontact = lib.mkEnableOption "Kontact";
|
|
merkuro = lib.mkEnableOption "Merkuro";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages =
|
|
with pkgs.kdePackages;
|
|
[
|
|
# core packages
|
|
akonadi
|
|
kdepim-runtime
|
|
]
|
|
++ lib.optionals cfg.kmail [
|
|
akonadiconsole
|
|
akonadi-search
|
|
kmail
|
|
kmail-account-wizard
|
|
]
|
|
++ lib.optionals cfg.kontact [
|
|
kontact
|
|
]
|
|
++ lib.optionals cfg.merkuro (
|
|
[
|
|
merkuro
|
|
]
|
|
# Only needed when using the Merkuro Contacts widget in Plasma.
|
|
++ lib.optionals config.services.desktopManager.plasma6.enable [
|
|
kcontacts
|
|
]
|
|
);
|
|
};
|
|
}
|