Pull emacs (and nixos) config in git-sync-all instead of hyprland startup
This commit is contained in:
parent
162c76c46d
commit
235a678a7c
|
@ -347,7 +347,6 @@
|
|||
extraConfig = ''
|
||||
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.xdg.configHome}/emacs pull --ff-only
|
||||
'';
|
||||
};
|
||||
xdg.configFile = {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# Sync common directories, setting url to ensure it's up-to-date first
|
||||
SYNC_DIRS=(
|
||||
"$HOME/.password-store/"
|
||||
"$HOME/.elfeed/"
|
||||
|
@ -24,3 +25,7 @@ for i in "${!SYNC_DIRS[@]}"; do
|
|||
git-sync -ns
|
||||
)
|
||||
done
|
||||
|
||||
# Pull NixOS and Emacs config if simple fast-forward
|
||||
git -C /etc/nixos pull --ff-only
|
||||
git -C "${XDG_CONFIG_HOME:-$HOME/.config}/emacs" pull --ff-only
|
||||
|
|
Loading…
Reference in a new issue