Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. { config, pkgs, home, ... }:
  2.  
  3. with import <nixpkgs> {};
  4. with lib;
  5.  
  6. let
  7. emacsHEAD = import ./emacs.nix;
  8. all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
  9. unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
  10. in
  11. {
  12. nixpkgs.config = {
  13. allowUnfree = true;
  14. allowBroken = true;
  15. packageOverrides = pkgs: {
  16. unstable = import unstableTarball {
  17. config = config.nixpkgs.config;
  18. };
  19. haskellPackages = (import unstableTarball {
  20. config = config.nixpkgs.config;
  21. }).haskell.packages.ghc881;
  22. };
  23. };
  24.  
  25. home = {
  26. packages = with pkgs; [
  27. unstable.haskell.compiler.ghc881
  28. ];
  29. };
  30.  
  31. programs = {
  32. # Let Home Manager install and manage itself.
  33. home-manager.enable = true;
  34. };
  35.  
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement