diff --git a/nix/home-manager/modules/files.nix b/nix/home-manager/modules/files.nix index 1a6d3d0..c93c482 100644 --- a/nix/home-manager/modules/files.nix +++ b/nix/home-manager/modules/files.nix @@ -17,8 +17,17 @@ in { profileDir = config.home.profileDirectory; }; xdg.configFile = { - "doom/init.el".source = ./${repo_root}/emacs/emacs.doom/init.el; - "doom/config.el".source = ./${repo_root}/emacs/emacs.doom/config.el; - "doom/packages.el".source = ./${repo_root}/emacs/emacs.doom/packages.el; + "doom/init.el" = { + source = ./${repo_root}/emacs/emacs.doom/init.el; + onChange = "~/.emacs.d/bin/doom sync"; + }; + "doom/config.el" = { + source = ./${repo_root}/emacs/emacs.doom/config.el; + onChange = "~/.emacs.d/bin/doom sync"; + }; + "doom/packages.el" = { + source = ./${repo_root}/emacs/emacs.doom/packages.el; + onChange = "~/.emacs.d/bin/doom sync"; + }; }; }