feat: Remove Doom Emacs and Spacemacs

This commit is contained in:
ulic-youthlic 2026-07-04 23:01:21 +08:00
parent d62f71605a
commit 6301d36798
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
10 changed files with 50 additions and 653 deletions

View file

@ -1,48 +0,0 @@
{
config,
pkgs,
lib,
inputs,
...
}: let
inherit (inputs) nixpkgs emacs-overlay spacemacs;
inherit (pkgs) system;
cfg = config.david.programs.spacemacs;
pkgs' = import nixpkgs {
localSystem = {inherit system;};
overlays = [emacs-overlay.overlays.default];
};
in {
options = {
david.programs.spacemacs = {
enable = lib.mkEnableOption "spacemacs";
};
};
config = lib.mkIf cfg.enable {
stylix.targets.emacs.enable = false;
xdg.configFile = {
emacs = {
source = "${spacemacs}";
recursive = true;
};
};
programs.emacs = {
enable = true;
package = with pkgs';
(emacsPackagesFor emacs-pgtk).emacsWithPackages (_epkgs: [
git
gnutar
ripgrep
]);
};
services.emacs = {
client = {
enable = true;
};
defaultEditor = false;
enable = true;
socketActivation.enable = true;
startWithUserSession = true;
};
};
}