summary refs log tree commit diff
path: root/pkgs-ng/system/user-environment.fix
blob: c868f3d62c120e4e5cb4a02f03399155d1b48520 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Given a system identifier, this function returns a derivation of a
# user environment, i.e., a set of symbolic links to `activated'
# packages.  The resulting package is typically passed to the
# `nix-switch' command in order to actually activate it.

{system}: let {
  # All activated packages.
  pkgs = (import ./all-packages.fix) {system = system};

  # The packages selection for inclusion in the user environment.
  # This list should be generated automatically by a package
  # management user interface.
  selectedPkgs = [
    pkgs.subversion
    pkgs.pan
    pkgs.sylpheed
    pkgs.firebird
    pkgs.MPlayer
    pkgs.gqview
  ];

  # Create a user environment.
  body = derivation { 
    name = "user-environment";
    system = system;
    builder = ./populate-linkdirs.pl;
    dirs = selectedPkgs;
  };
}