Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {config, pkgs, lib, ...}:
- with lib;
- let
- cfg = config.happy.system.emacs;
- customEclipse = import ../derivations/software/eclipse-wrapped.nix { pkgs = import <nixos-stable> {};};
- customEmacs = pkgs.emacsPackagesNg.emacsWithPackages (x: [
- x.pdf-tools
- pkgs.emacsPackages.ocamlMode
- ])
- in {
- options.happy.system.emacs = {
- enable = mkEnableOption "Install Happy Workstation";
- };
- config = mkIf cfg.enable {
- services.emacs.defaultEditor = true;
- services.emacs.enable = true;
- services.emacs.package = customEmacs;
- services.gnome3.gvfs.enable = true;
- environment.systemPackages = with pkgs; [
- customEmacs
- customEclipse
- fasd
- aspell
- aspellDicts.en
- aspellDicts.de
- ];
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement