Remove git-sync services, issues with using pass

Add git-sync as installed package to run syncing manually though

TODO consider an exec line in hyprland or something similar?
This commit is contained in:
Evie Litherland-Smith 2024-01-14 12:54:45 +00:00
parent 6c27ad0a5e
commit 9123788cda
3 changed files with 11 additions and 38 deletions

View file

@ -16,23 +16,14 @@
helper = "${pkgs.pass-git-helper}/bin/pass-git-helper"; helper = "${pkgs.pass-git-helper}/bin/pass-git-helper";
}; };
}; };
services = { services.gpg-agent = rec {
gpg-agent = rec { enable = true;
enable = true; maxCacheTtl = 86400;
maxCacheTtl = 86400; defaultCacheTtl = maxCacheTtl;
defaultCacheTtl = maxCacheTtl; defaultCacheTtlSsh = maxCacheTtl;
defaultCacheTtlSsh = maxCacheTtl; pinentryFlavor = lib.mkDefault "curses";
pinentryFlavor = lib.mkDefault "curses"; extraConfig = ''
extraConfig = '' no-allow-external-cache
no-allow-external-cache '';
'';
};
git-sync = {
enable = true;
repositories.password-store = {
path = "${config.home.homeDirectory}/.password-store";
uri = "git+https://git.xenia.me.uk/xenia/pass.git";
};
};
}; };
} }

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { { pkgs, ... }: {
programs.emacs = { programs.emacs = {
# Clone emacs config from https://git.xenia.me.uk/xenia/emacs.git # Clone emacs config from https://git.xenia.me.uk/xenia/emacs.git
enable = true; enable = true;
@ -102,23 +102,4 @@
elfeed-tube-mpv elfeed-tube-mpv
]; ];
}; };
services = {
git-sync = {
enable = true;
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";
};
};
};
};
} }

View file

@ -9,6 +9,7 @@
libsecret libsecret
gnumake gnumake
git git
git-sync
pinentry pinentry
zip zip
unzip unzip