Re-enable git-sync service
This commit is contained in:
parent
023d1ecc2b
commit
f2c6de6ce9
|
@ -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
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
services.git-sync.enable = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Evie Litherland-Smith";
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue