Evie Litherland-Smith
c549ee4f97
Move emacs package definition (with emacsPackages) to system/emacs.nix Keep user config in home-manager as emacs service is installed as user service Remove extra expressions (formatters, lsp_servers) and bring back into default.nix Move config/ directory contents up one level
63 lines
1.4 KiB
Nix
63 lines
1.4 KiB
Nix
{ config, pkgs, crafted-emacs, ... }:
|
|
|
|
{
|
|
stylix.targets.emacs.enable = false;
|
|
xdg.configFile = {
|
|
"emacs/init.el".source = ./init.el;
|
|
"emacs/elfeed.org".source = ./elfeed.org;
|
|
"emacs/modules".source = ./modules;
|
|
"emacs/crafted-emacs".source = crafted-emacs;
|
|
};
|
|
services.git-sync = {
|
|
enable = true;
|
|
repositories.org = {
|
|
path = "${config.home.homeDirectory}/Org";
|
|
uri = "git+https://git.xenia.me.uk/xenia/Org.git";
|
|
};
|
|
};
|
|
home = {
|
|
packages = with pkgs; [
|
|
# Language-specific requirements
|
|
sqlite
|
|
pandoc
|
|
gfortran
|
|
rustup
|
|
texlive.combined.scheme-medium
|
|
python3
|
|
|
|
# Linters
|
|
nodePackages.stylelint
|
|
|
|
# Formatters
|
|
nixfmt
|
|
beautysh
|
|
black
|
|
isort
|
|
nodePackages.fixjson
|
|
fprettify
|
|
shellharden
|
|
shfmt
|
|
stylua
|
|
python3Packages.mdformat
|
|
html-tidy
|
|
nodePackages.js-beautify
|
|
|
|
# LSP Servers
|
|
nixd
|
|
fortls
|
|
shellcheck
|
|
marksman
|
|
luajitPackages.lua-lsp
|
|
texlab
|
|
nodePackages.pyright
|
|
nodePackages.yaml-language-server
|
|
nodePackages.bash-language-server
|
|
nodePackages.javascript-typescript-langserver
|
|
nodePackages.vscode-html-languageserver-bin
|
|
nodePackages.vscode-css-languageserver-bin
|
|
nodePackages.vscode-json-languageserver-bin
|
|
nodePackages.dockerfile-language-server-nodejs
|
|
];
|
|
};
|
|
}
|