Use emacsPgtk
This commit is contained in:
parent
1f9c5f8980
commit
26d3e4a1c9
12
flake.lock
12
flake.lock
|
@ -8,11 +8,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1673667358,
|
||||
"narHash": "sha256-29xEYwKyYQQzpmN7bdCGRTNiSazkpFF6UWYx2RYaKJo=",
|
||||
"lastModified": 1673838100,
|
||||
"narHash": "sha256-iLNzJqL01hHuZcnxNoB7bqj65lfQtEAc7+krVW4R6ck=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "1114c22aeb13c1c2344f237ec57bf155c9fc1a8f",
|
||||
"rev": "b63cf575927c768ad4dbc4a70f64201e59cf3da6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -38,11 +38,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1673612960,
|
||||
"narHash": "sha256-DWR7hrbecJKmUJCswk9MXZta710mq+3jZwTvHU/UfyY=",
|
||||
"lastModified": 1673704454,
|
||||
"narHash": "sha256-5Wdj1MgdOgn3+dMFIBtg+IAYZApjF8JzwLWDPieg0C4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e285dd0ca97c264003867c7329f0d1f4f028739c",
|
||||
"rev": "a83ed85c14fcf242653df6f4b0974b7e1c73c6c6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
12
flake.nix
12
flake.nix
|
@ -35,11 +35,10 @@
|
|||
grammers
|
||||
];
|
||||
});
|
||||
in {
|
||||
packages.${system} = let
|
||||
|
||||
custom-emacs =
|
||||
with nix; with pkgs;
|
||||
((emacsPackagesFor emacs).emacsWithPackages (epkgs: with epkgs; [
|
||||
((emacsPackagesFor emacsPgtk).emacsWithPackages (epkgs: with epkgs; [
|
||||
avy
|
||||
company
|
||||
editorconfig
|
||||
|
@ -80,15 +79,18 @@
|
|||
ws-butler
|
||||
]));
|
||||
in {
|
||||
emacs = custom-emacs;
|
||||
packages.${system} = {
|
||||
default = custom-emacs;
|
||||
|
||||
module =
|
||||
with nix; {
|
||||
home.packages = [ custom-emacs ];
|
||||
|
||||
services.emacs.enable = true;
|
||||
|
||||
xdg.configFile."emacs".source = with pkgs;
|
||||
runCommandNoCC ".emacs.d" {
|
||||
nativeBuildInputs = [ emacs ];
|
||||
nativeBuildInputs = [ emacsPgtk ];
|
||||
} ''
|
||||
cp ${./early-init.el} early-init.el
|
||||
cp ${./init.el} init.el
|
||||
|
|
Loading…
Reference in a new issue