My Nix configuration. Enter at your own risk.
0

Configure Feed

Select the types of activity you want to include in your feed.

emacs: Use modules.home.config for editable config files

Convert the inline xdg.configFile + mkOutOfStoreSymlink boilerplate to
the new modules.home.config registry. Same behavior — init.el and lisp/
still symlink back to the live tree under ~/.nix so Emacs can edit them
without a home-manager rebuild — but the call site shrinks to the two
relevant lines and the repoPath let-binding goes away.

author
Isaac Corbrey
date (Jun 5, 2026, 2:55 PM -0400) commit abb2784e parent 4063892d change-id mylvtmul
+4 -6
+4 -6
modules/home/emacs/default.nix
··· 5 5 6 6 config = let 7 7 emacs = config.modules.home.emacs; 8 - repoPath = "${config.home.homeDirectory}/.nix/modules/home/emacs"; 9 8 in lib.mkIf emacs.enable (let 10 9 # Pick the platform-native GUI Emacs backend: pgtk on Linux (native 11 10 # Wayland, no X11), NS/Cocoa on darwin (the default `pkgs.emacs` build). ··· 37 36 pkgs.fd 38 37 ]; 39 38 40 - xdg.configFile."emacs/init.el".source = 41 - config.lib.file.mkOutOfStoreSymlink "${repoPath}/init.el"; 42 - 43 - xdg.configFile."emacs/lisp".source = 44 - config.lib.file.mkOutOfStoreSymlink "${repoPath}/lisp"; 39 + modules.home.config = { 40 + "emacs/init.el" = ./init.el; 41 + "emacs/lisp" = ./lisp; 42 + }; 45 43 }); 46 44 }