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 elfeed-tube-mpv
]; ];
}; };
services.emacs = { services = {
enable = true; emacs = {
package = config.programs.emacs.finalPackage; enable = true;
startWithUserSession = false; package = config.programs.emacs.finalPackage;
defaultEditor = true; startWithUserSession = false;
client.enable = true; defaultEditor = true;
socketActivation.enable = 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; [ home.packages = with pkgs; [
# Emacs requirements # Emacs requirements

View file

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

View file

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

View file

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