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
@@ -7,3 +7,29 @@ Started with a configuration generated from [this nixos config template](https:/
|
||||
Initialy created 'with secrets' but stripped out the git/agenix in favor of sops
|
||||
|
||||
Refactored the configuration to remove nixos but keep the shared modules and Darwin host setup, with no NixOS trees or Linux app targets.
|
||||
|
||||
## Emacs and binary caches
|
||||
|
||||
The Emacs overlay is a flake input pinned in `flake.lock`. Keep the lock file
|
||||
in version control so builds use the same input revisions. Update only the
|
||||
overlay with:
|
||||
|
||||
```sh
|
||||
nix flake update emacs-overlay
|
||||
```
|
||||
|
||||
Emacs uses the unmodified release package from each architecture's nixpkgs,
|
||||
rather than `emacs-git`, to reuse builds from `https://cache.nixos.org`.
|
||||
The overlay still supplies `emacsWithPackagesFromUsePackage` and the Lisp
|
||||
package definitions. The installed Emacs and launchd daemon share the same
|
||||
configured package; client launchers use the matching release Emacs client.
|
||||
|
||||
Both the NixOS and nix-community caches are configured in the Darwin host.
|
||||
Cache availability depends on the locked revisions and architecture. Check the
|
||||
base Emacs build without compiling (substitute `x86_64-darwin` for Intel):
|
||||
|
||||
```sh
|
||||
nix build --dry-run '.#darwinConfigurations.aarch64-darwin.pkgs.emacs'
|
||||
```
|
||||
|
||||
The custom Lisp package collection and wrapper may still need local builds.
|
||||
Reference in new issue
Block a user