Split gpg-agent and mbsync service into separate files
This commit is contained in:
parent
b4e5fecf4c
commit
df557003e2
|
@ -2,11 +2,12 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./pass/default.nix
|
||||
./pass/agent.nix
|
||||
./git/default.nix
|
||||
./ssh/default.nix
|
||||
./tui/default.nix
|
||||
./tmux/default.nix
|
||||
./mail/service.nix
|
||||
./hyprland/default.nix
|
||||
./alacritty/default.nix
|
||||
./firefox/default.nix
|
||||
|
|
|
@ -153,5 +153,4 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
services.mbsync.enable = true;
|
||||
}
|
||||
|
|
6
home/mail/service.nix
Normal file
6
home/mail/service.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./default.nix ];
|
||||
services.mbsync.enable = true;
|
||||
}
|
16
home/pass/agent.nix
Normal file
16
home/pass/agent.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./default.nix ];
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 7200;
|
||||
defaultCacheTtlSsh = 7200;
|
||||
pinentryFlavor = "gtk2";
|
||||
extraConfig = ''
|
||||
no-allow-external-cache
|
||||
allow-emacs-pinentry
|
||||
allow-loopback-pinentry
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -11,15 +11,4 @@
|
|||
git.extraConfig.credential.helper =
|
||||
"${pkgs.gitFull}/bin/git-credential-libsecret";
|
||||
};
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 7200;
|
||||
defaultCacheTtlSsh = 7200;
|
||||
pinentryFlavor = "gtk2";
|
||||
extraConfig = ''
|
||||
no-allow-external-cache
|
||||
allow-emacs-pinentry
|
||||
allow-loopback-pinentry
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
{ pkgs, user, shell ? "zsh", ... }:
|
||||
{ lib, pkgs, user, shell ? "zsh", ... }:
|
||||
let homeDirectory = "/Users/${user}";
|
||||
in {
|
||||
imports = [
|
||||
../../home/shell/${shell}.nix
|
||||
../../home/git
|
||||
../../home/ssh
|
||||
../../home/tui
|
||||
../../home/tmux
|
||||
../../home/alacritty
|
||||
../../home/emacs
|
||||
../../home/pass/default.nix
|
||||
../../home/git/default.nix
|
||||
../../home/ssh/default.nix
|
||||
../../home/tui/default.nix
|
||||
../../home/tmux/default.nix
|
||||
../../home/mail/default.nix
|
||||
../../home/alacritty/default.nix
|
||||
../../home/emacs/default.nix
|
||||
];
|
||||
home = {
|
||||
inherit homeDirectory;
|
||||
|
@ -25,12 +27,6 @@ in {
|
|||
'';
|
||||
};
|
||||
emacs.package = pkgs.emacs29;
|
||||
gpg.enable = true;
|
||||
password-store = {
|
||||
enable = true;
|
||||
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
|
||||
settings.PASSWORD_STORE_DIR = "$HOME/.password-store";
|
||||
};
|
||||
};
|
||||
services.syncthing.enable = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue