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 = ''
|
extraConfig = ''
|
||||||
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
|
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
|
||||||
exec-once = systemctl --user restart "xdg-desktop-portal*"
|
exec-once = systemctl --user restart "xdg-desktop-portal*"
|
||||||
exec-once = ${pkgs.git}/bin/git -C ${config.xdg.configHome}/emacs pull --ff-only
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Sync common directories, setting url to ensure it's up-to-date first
|
||||||
SYNC_DIRS=(
|
SYNC_DIRS=(
|
||||||
"$HOME/.password-store/"
|
"$HOME/.password-store/"
|
||||||
"$HOME/.elfeed/"
|
"$HOME/.elfeed/"
|
||||||
|
@ -24,3 +25,7 @@ for i in "${!SYNC_DIRS[@]}"; do
|
||||||
git-sync -ns
|
git-sync -ns
|
||||||
)
|
)
|
||||||
done
|
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