Use emacsPgtk
This commit is contained in:
parent
1f9c5f8980
commit
26d3e4a1c9
12
flake.lock
12
flake.lock
|
@ -8,11 +8,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673667358,
|
"lastModified": 1673838100,
|
||||||
"narHash": "sha256-29xEYwKyYQQzpmN7bdCGRTNiSazkpFF6UWYx2RYaKJo=",
|
"narHash": "sha256-iLNzJqL01hHuZcnxNoB7bqj65lfQtEAc7+krVW4R6ck=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "1114c22aeb13c1c2344f237ec57bf155c9fc1a8f",
|
"rev": "b63cf575927c768ad4dbc4a70f64201e59cf3da6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -38,11 +38,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673612960,
|
"lastModified": 1673704454,
|
||||||
"narHash": "sha256-DWR7hrbecJKmUJCswk9MXZta710mq+3jZwTvHU/UfyY=",
|
"narHash": "sha256-5Wdj1MgdOgn3+dMFIBtg+IAYZApjF8JzwLWDPieg0C4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e285dd0ca97c264003867c7329f0d1f4f028739c",
|
"rev": "a83ed85c14fcf242653df6f4b0974b7e1c73c6c6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
94
flake.nix
94
flake.nix
|
@ -35,60 +35,62 @@
|
||||||
grammers
|
grammers
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
in {
|
|
||||||
packages.${system} = let
|
|
||||||
custom-emacs =
|
|
||||||
with nix; with pkgs;
|
|
||||||
((emacsPackagesFor emacs).emacsWithPackages (epkgs: with epkgs; [
|
|
||||||
avy
|
|
||||||
company
|
|
||||||
editorconfig
|
|
||||||
evil
|
|
||||||
evil-collection
|
|
||||||
evil-goggles
|
|
||||||
evil-textobj-tree-sitter
|
|
||||||
flycheck
|
|
||||||
lsp-mode
|
|
||||||
lsp-treemacs
|
|
||||||
lsp-ui
|
|
||||||
magit
|
|
||||||
markdown-mode
|
|
||||||
nix-mode reformatter # required by nix mode
|
|
||||||
projectile
|
|
||||||
rainbow-mode
|
|
||||||
rustic
|
|
||||||
tree-sitter
|
|
||||||
tree-sitter-langs
|
|
||||||
(trivialBuild {
|
|
||||||
pname = "ts-fold";
|
|
||||||
version = "0.1.0";
|
|
||||||
src = ts-fold;
|
|
||||||
|
|
||||||
buildInputs = [
|
custom-emacs =
|
||||||
tree-sitter
|
with nix; with pkgs;
|
||||||
s
|
((emacsPackagesFor emacsPgtk).emacsWithPackages (epkgs: with epkgs; [
|
||||||
fringe-helper
|
avy
|
||||||
];
|
company
|
||||||
})
|
editorconfig
|
||||||
treemacs
|
evil
|
||||||
treemacs-evil
|
evil-collection
|
||||||
treemacs-projectile
|
evil-goggles
|
||||||
treemacs-magit
|
evil-textobj-tree-sitter
|
||||||
use-package
|
flycheck
|
||||||
vertico
|
lsp-mode
|
||||||
which-key
|
lsp-treemacs
|
||||||
ws-butler
|
lsp-ui
|
||||||
]));
|
magit
|
||||||
in {
|
markdown-mode
|
||||||
emacs = custom-emacs;
|
nix-mode reformatter # required by nix mode
|
||||||
|
projectile
|
||||||
|
rainbow-mode
|
||||||
|
rustic
|
||||||
|
tree-sitter
|
||||||
|
tree-sitter-langs
|
||||||
|
(trivialBuild {
|
||||||
|
pname = "ts-fold";
|
||||||
|
version = "0.1.0";
|
||||||
|
src = ts-fold;
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
tree-sitter
|
||||||
|
s
|
||||||
|
fringe-helper
|
||||||
|
];
|
||||||
|
})
|
||||||
|
treemacs
|
||||||
|
treemacs-evil
|
||||||
|
treemacs-projectile
|
||||||
|
treemacs-magit
|
||||||
|
use-package
|
||||||
|
vertico
|
||||||
|
which-key
|
||||||
|
ws-butler
|
||||||
|
]));
|
||||||
|
in {
|
||||||
|
packages.${system} = {
|
||||||
|
default = custom-emacs;
|
||||||
|
|
||||||
module =
|
module =
|
||||||
with nix; {
|
with nix; {
|
||||||
home.packages = [ custom-emacs ];
|
home.packages = [ custom-emacs ];
|
||||||
|
|
||||||
|
services.emacs.enable = true;
|
||||||
|
|
||||||
xdg.configFile."emacs".source = with pkgs;
|
xdg.configFile."emacs".source = with pkgs;
|
||||||
runCommandNoCC ".emacs.d" {
|
runCommandNoCC ".emacs.d" {
|
||||||
nativeBuildInputs = [ emacs ];
|
nativeBuildInputs = [ emacsPgtk ];
|
||||||
} ''
|
} ''
|
||||||
cp ${./early-init.el} early-init.el
|
cp ${./early-init.el} early-init.el
|
||||||
cp ${./init.el} init.el
|
cp ${./init.el} init.el
|
||||||
|
|
Loading…
Reference in a new issue