add mpdris change emacs package hyprland keybind changes random changes to home.packages Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
32 lines
873 B
Nix
32 lines
873 B
Nix
{ config, pkgs, inputs, ... }:
|
|
let
|
|
mymacs = config: # with inputs.emacs-overlay.packages.${pkgs.system}; already resolved with overlay
|
|
with pkgs; emacsWithPackagesFromUsePackage {
|
|
inherit config;
|
|
package = emacsPgtk;
|
|
alwaysEnsure = true;
|
|
alwaysTangle = true;
|
|
extraEmacsPackages = epkgs: with epkgs; [
|
|
use-package
|
|
(epkgs.tree-sitter-langs.withPlugins (_: epkgs.tree-sitter-langs.plugins))
|
|
];
|
|
};
|
|
in
|
|
{
|
|
home.file = with config; {
|
|
"config.org" = {
|
|
source = ./config/emacs/config.org;
|
|
target = "${home.homeDirectory}/.emacs.d/config.org";
|
|
};
|
|
"init.el" = {
|
|
source = ./config/emacs/init.el;
|
|
target = "${home.homeDirectory}/.emacs.d/init.el";
|
|
};
|
|
};
|
|
programs.emacs = {
|
|
enable = true;
|
|
package = mymacs ./config/emacs/config.org;
|
|
};
|
|
services.emacs.enable = true;
|
|
}
|