diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-29 18:25:46 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-29 20:03:50 +0200 |
commit | c2495261a89bcb7393cf745040304c8c3679d2ce (patch) | |
tree | ba38bc153d14759c515992cb815b46b7149ca74e /nixos/modules/services/x11 | |
parent | d65af1353372200e65f3a4cb87f07242af113802 (diff) | |
download | nixlib-c2495261a89bcb7393cf745040304c8c3679d2ce.tar nixlib-c2495261a89bcb7393cf745040304c8c3679d2ce.tar.gz nixlib-c2495261a89bcb7393cf745040304c8c3679d2ce.tar.bz2 nixlib-c2495261a89bcb7393cf745040304c8c3679d2ce.tar.lz nixlib-c2495261a89bcb7393cf745040304c8c3679d2ce.tar.xz nixlib-c2495261a89bcb7393cf745040304c8c3679d2ce.tar.zst nixlib-c2495261a89bcb7393cf745040304c8c3679d2ce.zip |
kde4: Allow disabling dependency on MariaDB
This reduces the runtime closure of a KDE4 system by ~172 MiB.
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/kde4.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/kde4.nix b/nixos/modules/services/x11/desktop-managers/kde4.nix index 1927341e45d4..4a83b5021e04 100644 --- a/nixos/modules/services/x11/desktop-managers/kde4.nix +++ b/nixos/modules/services/x11/desktop-managers/kde4.nix @@ -70,6 +70,12 @@ in type = types.package; description = "Custom kde-workspace, used for NixOS rebranding."; }; + + enablePIM = mkOption { + type = types.bool; + default = true; + description = "Whether to enable PIM support. Note that enabling this pulls in Akonadi and MariaDB as dependencies."; + }; }; }; @@ -151,18 +157,20 @@ in xorg.xauth # used by kdesu pkgs.shared_desktop_ontologies # used by nepomuk pkgs.strigi # used by nepomuk + ] + ++ optionals cfg.enablePIM + [ pkgs.kde4.kdepim_runtime pkgs.kde4.akonadi pkgs.mysql # used by akonadi - pkgs.kde4.kdepim_runtime ] - ++ lib.optional config.hardware.pulseaudio.enable pkgs.kde4.kmix # Perhaps this should always be enabled - ++ lib.optional config.hardware.bluetooth.enable pkgs.kde4.bluedevil - ++ lib.optional config.networking.networkmanager.enable pkgs.kde4.plasma-nm + ++ optional config.hardware.pulseaudio.enable pkgs.kde4.kmix # Perhaps this should always be enabled + ++ optional config.hardware.bluetooth.enable pkgs.kde4.bluedevil + ++ optional config.networking.networkmanager.enable pkgs.kde4.plasma-nm ++ [ nepomukConfig ] ++ phononBackendPackages; environment.pathsToLink = [ "/share" ]; - environment.profileRelativeEnvVars = mkIf (lib.elem "gstreamer" cfg.phononBackends) { + environment.profileRelativeEnvVars = mkIf (elem "gstreamer" cfg.phononBackends) { GST_PLUGIN_SYSTEM_PATH = [ "/lib/gstreamer-0.10" ]; }; |