mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
kde4: Allow disabling dependency on MariaDB
This reduces the runtime closure of a KDE4 system by ~172 MiB.
This commit is contained in:
parent
d65af13533
commit
c2495261a8
@ -105,4 +105,7 @@ with lib;
|
|||||||
cp -f ${plasmaInit} $out/share/apps/plasma-desktop/init/00-defaultLayout.js
|
cp -f ${plasmaInit} $out/share/apps/plasma-desktop/init/00-defaultLayout.js
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Disable large stuff that's not very useful on the installation CD.
|
||||||
|
services.xserver.desktopManager.kde4.enablePIM = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,12 @@ in
|
|||||||
type = types.package;
|
type = types.package;
|
||||||
description = "Custom kde-workspace, used for NixOS rebranding.";
|
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
|
xorg.xauth # used by kdesu
|
||||||
pkgs.shared_desktop_ontologies # used by nepomuk
|
pkgs.shared_desktop_ontologies # used by nepomuk
|
||||||
pkgs.strigi # used by nepomuk
|
pkgs.strigi # used by nepomuk
|
||||||
|
]
|
||||||
|
++ optionals cfg.enablePIM
|
||||||
|
[ pkgs.kde4.kdepim_runtime
|
||||||
pkgs.kde4.akonadi
|
pkgs.kde4.akonadi
|
||||||
pkgs.mysql # used by 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
|
++ optional config.hardware.pulseaudio.enable pkgs.kde4.kmix # Perhaps this should always be enabled
|
||||||
++ lib.optional config.hardware.bluetooth.enable pkgs.kde4.bluedevil
|
++ optional config.hardware.bluetooth.enable pkgs.kde4.bluedevil
|
||||||
++ lib.optional config.networking.networkmanager.enable pkgs.kde4.plasma-nm
|
++ optional config.networking.networkmanager.enable pkgs.kde4.plasma-nm
|
||||||
++ [ nepomukConfig ] ++ phononBackendPackages;
|
++ [ nepomukConfig ] ++ phononBackendPackages;
|
||||||
|
|
||||||
environment.pathsToLink = [ "/share" ];
|
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" ];
|
GST_PLUGIN_SYSTEM_PATH = [ "/lib/gstreamer-0.10" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user