Search This Blog

2015-04-29

nix haskell

#as root...

groupadd -r nixbld

for n in $(seq 1 2); do
  useradd -c "Nix build user $n"\
    -d /var/empty\
    -g nixbld -G nixbld\
    -M -N -r -s "$(which nologin)" nixbld$n
done

nis-daemon

# as r...

nix-env --switch-profile /nix/var/nix/profiles/per-user/r

#
#nix-channel --add https://nixos.org/channels/nixpkgs-unstable
#
nix-channel --add https://nixos.org/channels/nixos-14.12
nix-channel --update

nix-env -qa

# list haskell packages...

nix-env -iA nixpkgs.haskellPackages.ghc

nix-env -qaP \* | grep haskellPackages\\. | cat -n
nix-env -qaP \* | grep haskellPackages.xmonad