nixpkgs/modules/services/x11/desktop-managers/kde-environment.nix
Yury G. Kudryashov 8324ccf755 Add /var/run/current-system/sw to NIX_PROFILES
Also adds a possibility to just add KDE packages to systemPackages.

svn path=/nixos/trunk/; revision=21103
2010-04-15 15:47:15 +00:00

35 lines
773 B
Nix

{pkgs, config, ...}:
let
inherit (pkgs.lib) mkOption mkIf types;
kdePackages = config.environment.kdePackages;
options = {
environment = {
kdePackages = mkOption {
default = [];
example = [ pkgs.kde4.kdegames ];
type = types.list types.package;
description = ''
Additional KDE packages to be used when you use KDE as a desktop
manager. By default, you only get the KDE base packages.
Just adds packages to systemPackages and x11Packages. Will be removed
in the future.
'';
};
};
};
in
mkIf (kdePackages != [] && config.services.xserver.enable) {
require = options;
environment = {
x11Packages = kdePackages;
systemPackages = kdePackages;
};
}