Evie Litherland-Smith
e24e35a64f
Move stylix config up to flake.nix as config wouldn't build without it, also move wallpapers directory up to top level to match Only enable git-sync where it's defined, rather than in home/default.nix
37 lines
925 B
Nix
37 lines
925 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
home.packages = [ pkgs.pinentry ];
|
|
programs = {
|
|
gpg.enable = true;
|
|
password-store = {
|
|
enable = true;
|
|
package = pkgs.pass-nodmenu.withExtensions
|
|
(exts: with exts; [ pass-otp pass-update pass-audit pass-import ]);
|
|
settings = {
|
|
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store";
|
|
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
|
|
};
|
|
};
|
|
};
|
|
services = {
|
|
gpg-agent = rec {
|
|
enable = true;
|
|
maxCacheTtl = 86400;
|
|
defaultCacheTtl = maxCacheTtl;
|
|
defaultCacheTtlSsh = maxCacheTtl;
|
|
pinentryFlavor = "gtk2";
|
|
extraConfig = ''
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|