From bdd8b623f292f299c83a6d1c06147165d78867b1 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Fri, 16 Feb 2024 16:24:53 -0500 Subject: [PATCH] onChange --- nix/home-manager/modules/files.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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"; + }; }; }