Emacs as daemon
Adding `$SSH_AUTH_SOCK` for `magit`
This commit is contained in:
parent
196aabdceb
commit
7646038b6f
1 changed files with 9 additions and 6 deletions
|
@ -31,13 +31,16 @@
|
||||||
package = ccrEmacsConfig.package;
|
package = ccrEmacsConfig.package;
|
||||||
};
|
};
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
# TODO Re-enable, this is causing some problems with magit, probably it
|
enable = true;
|
||||||
# would be sufficient disabling `socketActivation`
|
client.enable = true;
|
||||||
enable = false;
|
defaultEditor = true;
|
||||||
client.enable = false;
|
|
||||||
defaultEditor = false;
|
|
||||||
socketActivation.enable = false;
|
socketActivation.enable = false;
|
||||||
startWithUserSession = false; # when I log out I don't want Emacs server to exit
|
startWithUserSession = false;
|
||||||
|
};
|
||||||
|
systemd.user.sessionVariables = {
|
||||||
|
# TODO user `gpgconf --list-dirs agent-ssh-socket`
|
||||||
|
# and better manage when gpg is not installed (do not make magit crash)
|
||||||
|
SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh";
|
||||||
};
|
};
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[
|
[
|
||||||
|
|
Reference in a new issue