Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. {config, pkgs, lib, ...}:
  2.  
  3. with lib;
  4.  
  5. let
  6. cfg = config.happy.system.emacs;
  7. customEclipse = import ../derivations/software/eclipse-wrapped.nix { pkgs = import <nixos-stable> {};};
  8. customEmacs = pkgs.emacsPackagesNg.emacsWithPackages (x: [
  9. x.pdf-tools
  10. pkgs.emacsPackages.ocamlMode
  11. ])
  12.  
  13.  
  14. in {
  15. options.happy.system.emacs = {
  16. enable = mkEnableOption "Install Happy Workstation";
  17. };
  18.  
  19. config = mkIf cfg.enable {
  20.  
  21. services.emacs.defaultEditor = true;
  22. services.emacs.enable = true;
  23. services.emacs.package = customEmacs;
  24.  
  25. services.gnome3.gvfs.enable = true;
  26.  
  27. environment.systemPackages = with pkgs; [
  28. customEmacs
  29. customEclipse
  30. fasd
  31. aspell
  32. aspellDicts.en
  33. aspellDicts.de
  34. ];
  35. };
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement