Emacs now uses flake pinning and cached packages. And dock stall workaround
This commit is contained in:
1 parent
ca6ddc4b48
commit
5e24c62d7b
8 files changed
+632
-35
No files matched your search
+15
-14
@@ -7,6 +7,19 @@
|
||||
|
||||
let
|
||||
user = "olaf";
|
||||
configuredEmacs = pkgs.emacsWithPackagesFromUsePackage {
|
||||
config = ../config/emacs/emacs.el;
|
||||
defaultInitFile = true;
|
||||
package = pkgs.emacs;
|
||||
alwaysEnsure = true;
|
||||
extraEmacsPackages =
|
||||
epkgs: with epkgs; [
|
||||
magit
|
||||
company
|
||||
nix-mode
|
||||
use-package
|
||||
];
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
@@ -101,19 +114,7 @@ in
|
||||
with pkgs;
|
||||
[
|
||||
# Emacs with automatic package management from overlay
|
||||
(emacsWithPackagesFromUsePackage {
|
||||
config = ../config/emacs/emacs.el;
|
||||
defaultInitFile = true;
|
||||
package = emacs-git;
|
||||
alwaysEnsure = true;
|
||||
extraEmacsPackages =
|
||||
epkgs: with epkgs; [
|
||||
magit
|
||||
company
|
||||
nix-mode
|
||||
use-package
|
||||
];
|
||||
})
|
||||
configuredEmacs
|
||||
]
|
||||
++ (import ../../modules/darwin/packages.nix { inherit pkgs llm-agents; })
|
||||
|
||||
@@ -125,7 +126,7 @@ in
|
||||
ProgramArguments = [
|
||||
"/bin/sh"
|
||||
"-c"
|
||||
"/bin/wait4path ${pkgs.emacs}/bin/emacs && exec ${pkgs.emacs}/bin/emacs --fg-daemon"
|
||||
"/bin/wait4path ${configuredEmacs}/bin/emacs && exec ${configuredEmacs}/bin/emacs --fg-daemon"
|
||||
];
|
||||
StandardErrorPath = "/tmp/emacs.err.log";
|
||||
StandardOutPath = "/tmp/emacs.out.log";
|
||||
|
||||
Reference in new issue
Block a user