feat(skadi): add emacs overlay/config.
This commit is contained in:
parent
127940f7ea
commit
05d24399be
8 changed files with 339 additions and 36 deletions
30
modules/linux/home-manager/emacs.nix
Normal file
30
modules/linux/home-manager/emacs.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.emacs.enable = lib.mkEnableOption "Enable and setup emacs";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.emacs.enable {
|
||||
# Disable emacs stylix target
|
||||
stylix.targets.emacs.enable = false;
|
||||
|
||||
# Setup emacs
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacsWithPackagesFromUsePackage {
|
||||
package = pkgs.emacs-git;
|
||||
config = ./configs/emacs/config.org;
|
||||
extraEmacsPackages = epkgs: [
|
||||
epkgs.use-package
|
||||
];
|
||||
defaultInitFile = true;
|
||||
alwaysEnsure = true;
|
||||
alwaysTangle = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue