mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
* switch to sway * Add greetd pam integration, Add waybar base config * waybar (multiple modules do not behave as documented) * nm-applet * systemd-integration due to "normal" call via greetd configure mako adding base commands for nm-applet, blueman-applet * add kanshi * swayconfig keybindings for special multimedia keys * waybar base stylefile + basic modules * Add more portals to wayland/sway and fix fonts * Add nixosConfiguration-awareness to the homemanager module * Add alacritty.nix for home-manager configuration * Add formatter to flake * Format with alejandra style * Add apheleia to emacs * Add local configuration to use alejandra in this flake with emacs
122 lines
2.8 KiB
Nix
122 lines
2.8 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
defaultEl = ./default.el;
|
|
environment.systemPackages = [pkgs.gdb]; # use gdb for dap-mode
|
|
|
|
defaultConfig = pkgs.runCommand "default.el" {} ''
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
cp ${defaultEl} $out/share/emacs/site-lisp/default.el
|
|
'';
|
|
emacsPackage =
|
|
(pkgs.emacsPackagesFor pkgs.emacs).emacsWithPackages
|
|
(epkgs: let
|
|
lpkgs = import ./packages.nix {
|
|
inherit config lib pkgs epkgs;
|
|
};
|
|
in
|
|
#[ (defaultConfig lpkgs) ] ++ (with pkgs; [
|
|
# aspell
|
|
# emacs-all-the-icons-fonts
|
|
# gnupg
|
|
# nixpkgs-fmt
|
|
#])
|
|
[defaultConfig]
|
|
++ [
|
|
(with epkgs.elpaPackages; [
|
|
auctex
|
|
org
|
|
flymake
|
|
])
|
|
]
|
|
++ (with epkgs.melpaStablePackages; [])
|
|
++ (with epkgs.melpaPackages;
|
|
[
|
|
ac-helm
|
|
academic-phrases
|
|
add-hooks
|
|
alert
|
|
all-the-icons
|
|
all-the-icons-dired
|
|
apheleia
|
|
beacon
|
|
bln-mode
|
|
cargo-mode
|
|
company
|
|
company-auctex
|
|
company-bibtex
|
|
company-flx
|
|
company-quickhelp
|
|
company-reftex
|
|
cov
|
|
dap-mode
|
|
diminish
|
|
direnv
|
|
dockerfile-mode
|
|
docker-compose-mode
|
|
flycheck
|
|
free-keys
|
|
highlight-indentation
|
|
helm
|
|
#helm-bbdb
|
|
helm-company
|
|
helm-flx
|
|
helm-descbinds
|
|
helm-lsp
|
|
helm-projectile
|
|
helm-rg
|
|
json-mode
|
|
less-css-mode
|
|
lsp-mode
|
|
lsp-ui
|
|
magit
|
|
moe-theme
|
|
multiple-cursors
|
|
nix-mode
|
|
nixpkgs-fmt
|
|
org-bullets
|
|
org-roam
|
|
#org-roam-server
|
|
pasp-mode
|
|
pdf-tools
|
|
projectile
|
|
projectile-ripgrep
|
|
rustic
|
|
spacemacs-theme
|
|
solarized-theme
|
|
sparql-mode
|
|
sudo-edit
|
|
use-package
|
|
#vscode-dark-plus-theme
|
|
yaml-mode
|
|
yasnippet
|
|
#zenburn-theme
|
|
]
|
|
++ (with lpkgs; [
|
|
org-roam-ui
|
|
ligatures
|
|
])));
|
|
in {
|
|
options.elss.programs.emacs.enable = mkEnableOption "Setup emacs package and install it";
|
|
config = mkIf config.elss.programs.emacs.enable {
|
|
services.emacs = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
package = emacsPackage;
|
|
};
|
|
};
|
|
#nixpkgs.overlays = [ (self: super: { emacsOrig = super.emacs; }) (import (builtins.fetchTarball {
|
|
# url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
|
#})) ];
|
|
|
|
#nixpkgs.overlays = [
|
|
# (import (builtins.fetchTarball {
|
|
# url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
|
# }))
|
|
#];
|
|
}
|