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,13 +120,29 @@
elfeed-tube-mpv
];
};
services.emacs = {
enable = true;
package = config.programs.emacs.finalPackage;
startWithUserSession = false;
defaultEditor = true;
client.enable = true;
socketActivation.enable = true;
services = {
emacs = {
enable = true;
package = config.programs.emacs.finalPackage;
startWithUserSession = false;
defaultEditor = true;
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

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,14 +22,20 @@
helper = "${pkgs.pass-git-helper}/bin/pass-git-helper";
};
};
services.gpg-agent = rec {
enable = true;
maxCacheTtl = 86400;
defaultCacheTtl = maxCacheTtl;
defaultCacheTtlSsh = maxCacheTtl;
pinentryFlavor = lib.mkDefault "curses";
extraConfig = ''
no-allow-external-cache
'';
services = {
gpg-agent = rec {
enable = true;
maxCacheTtl = 86400;
defaultCacheTtl = maxCacheTtl;
defaultCacheTtlSsh = maxCacheTtl;
pinentryFlavor = lib.mkDefault "curses";
extraConfig = ''
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";
};
};
}