[nix] Move gpg-agent config over to nix and add mbsync systemd Unit

This commit is contained in:
Sebastian Schulze 2021-06-15 09:08:11 +02:00
parent 47c260d83a
commit d02d17a62c
Signed by: bascht
GPG key ID: 5BCB1D3B4D38A35A
2 changed files with 17 additions and 11 deletions

View file

@ -7,6 +7,21 @@ in
{
programs.home-manager.enable = true;
services.gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
enableSshSupport = true;
enableExtraSocket = true;
extraConfig = ''
allow-emacs-pinentry
debug-level expert
keep-display
extra-socket /run/user/1000/gnupg/S.gpg-agent.extra
no-grab
allow-preset-passphrase
'';
};
home.username = "bascht";
home.homeDirectory = "/home/bascht";
@ -221,6 +236,7 @@ in
"editor.renderControlCharacters" = true;
};
};
systemd.user.services.mako = {
Unit = {
Description = "Mako notifications";
@ -263,6 +279,7 @@ in
};
};
services.mbsync.enable = true;
services.gnome-keyring.enable = true;
services.nextcloud-client.enable = true;
services.emacs.enable = true;

View file

@ -1,11 +0,0 @@
default-cache-ttl 1800
max-cache-ttl 999999
enable-ssh-support
allow-emacs-pinentry
debug-level expert
keep-display
pinentry-program /home/bascht/.nix-profile/bin/pinentry
extra-socket /run/user/1000/gnupg/S.gpg-agent.extra
log-file /tmp/gpg-agent.log
no-grab
allow-preset-passphrase