Re-enable git-sync service
This commit is contained in:
parent
023d1ecc2b
commit
f2c6de6ce9
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue