From 104f2c8708cc2aceab664d415f9853e7b1e8994a Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 15 Feb 2024 09:01:19 +0000 Subject: [PATCH] Use emacs-sync-config script in hyprland extraConfig --- home/hyprland/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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} ''; }; }