nixos-config/user/app/doom-emacs/doom.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

2023-06-04 21:22:24 +05:30
{ config, lib, pkgs, eaf, eaf-browser, org-nursery, myThemePolarity, ... }:
let
myDashboardLogo = ./. + "/nix-" + myThemePolarity + ".png";
in
2023-05-16 04:48:59 +05:30
{
programs.doom-emacs = {
enable = true;
doomPrivateDir = ./.;
};
2023-05-16 04:48:59 +05:30
home.file.".emacs.d/themes/doom-stylix-theme.el".source = config.lib.stylix.colors {
template = builtins.readFile ./themes/doom-stylix-theme.el.mustache;
extension = ".el";
};
2023-05-20 06:55:57 +05:30
home.packages = with pkgs; [
git
nodejs
wmctrl
jshon
aria
2023-06-02 07:48:06 +05:30
hledger
hunspell hunspellDicts.en_US-large
pandoc
2023-06-02 07:48:06 +05:30
nodePackages.mermaid-cli
2023-05-20 06:55:57 +05:30
(python3.withPackages (p: with p; [
pandas
requests
pyqt6 sip qtpy qt6.qtwebengine epc lxml pyqt6-webengine
pysocks
pymupdf
markdown
]))];
home.sessionVariables = {
EDITOR = "emacsclient";
};
2023-05-20 06:55:57 +05:30
home.file.".emacs.d/eaf" = {
source = "${eaf}";
recursive = true;
};
home.file.".emacs.d/eaf/app/browser" = {
source = "${eaf-browser}";
recursive = true;
onChange = "
pushd ~/.emacs.d/eaf/app/browser;
rm package*.json;
npm install darkreader @mozilla/readability && rm package*.json;
2023-05-20 06:55:57 +05:30
popd;
";
};
home.file.".emacs.d/org-nursery" = {
source = "${org-nursery}";
};
2023-06-04 21:22:24 +05:30
home.file.".emacs.d/dashboard-logo.png".source = myDashboardLogo;
2023-05-16 04:48:59 +05:30
}