diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index a8b35c46..fe238172 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -308,10 +308,15 @@ "SUPER, mouse:273, resizewindow" ]; }; - extraConfig = '' + extraConfig = let + emacs-sync = let + name = "emacs-sync-config"; + script = builtins.readFile ../scripts/emacs-sync-config.sh; + in "${pkgs.writeShellScriptBin name script}/bin/${name}"; + in '' exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME exec-once = systemctl --user restart "xdg-desktop-portal*" - exec-once = ${pkgs.git}/bin/git -C ${config.home.homeDirectory}/.emacs pull --ff-only + exec-once = ${emacs-sync} ''; }; }