Re-enable git-sync service

This commit is contained in:
Evie Litherland-Smith 2024-02-10 06:45:31 +00:00
parent 023d1ecc2b
commit f2c6de6ce9
4 changed files with 40 additions and 16 deletions

View file

@ -120,7 +120,8 @@
elfeed-tube-mpv
];
};
services.emacs = {
services = {
emacs = {
enable = true;
package = config.programs.emacs.finalPackage;
startWithUserSession = false;
@ -128,6 +129,21 @@
client.enable = true;
socketActivation.enable = true;
};
git-sync.repositories = with config.xdg.userDirs; {
org = {
path = "${documents}/Org";
uri = "git+https://git.xenia.me.uk/xenia/org.git";
};
references = {
path = "${documents}/References";
uri = "git+https://git.xenia.me.uk/xenia/references.git";
};
# elfeed = {
# path = "${config.home.homeDirectory}/.elfeed";
# uri = "git+https://git.xenia.me.uk/xenia/elfeed.git";
# };
};
};
home.packages = with pkgs; [
# Emacs requirements
fd

View file

@ -3,6 +3,7 @@
lib,
...
}: {
services.git-sync.enable = true;
programs.git = {
enable = true;
userName = "Evie Litherland-Smith";

View file

@ -321,6 +321,7 @@
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.home.homeDirectory}/.emacs pull --ff-only
'';
};
}

View file

@ -22,7 +22,8 @@
helper = "${pkgs.pass-git-helper}/bin/pass-git-helper";
};
};
services.gpg-agent = rec {
services = {
gpg-agent = rec {
enable = true;
maxCacheTtl = 86400;
defaultCacheTtl = maxCacheTtl;
@ -32,4 +33,9 @@
no-allow-external-cache
'';
};
git-sync.repositories.password-store = {
path = "${config.home.homeDirectory}/.password-store";
uri = "git+https://git.xenia.me.uk/xenia/pass.git";
};
};
}