depot/nixos/modules/programs/kde-pim.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

30 lines
673 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
];
};
}