modules updates

This commit is contained in:
2024-04-28 11:24:47 -06:00
parent e23ce200a5
commit 4bcb766dec
11 changed files with 102 additions and 38 deletions

24
modules/emacs.nix Normal file
View File

@@ -0,0 +1,24 @@
{ config, lib, pkgs, unstable, ... }: {
options.my.emacs.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.emacs.enable {
users.users.jawz.packages = with pkgs; ([
fd # modern find, faster searches
(ripgrep.override { withPCRE2 = true; }) # modern grep
]);
services.emacs = {
enable = true;
package = with pkgs;
((emacsPackagesFor emacs-gtk).emacsWithPackages
(epkgs: with epkgs; ([ vterm ])));
defaultEditor = true;
};
home-manager.users.jawz.programs.bash.initExtra = ''
emacs-sqlite-fix () {
nix-shell -p cmake sqlite --command "doom sync &&
sc restart emacs &&
emacsclient -e '(org-roam-db-sync)'" &&
doom sync
}
'';
};
}