added cache config and git keyring overrides

This commit is contained in:
2025-07-16 18:53:46 +10:00
parent f0c2923124
commit f2836ab291

View File

@@ -49,4 +49,27 @@ users.users.root = {
#Enable flakes
nix.settings.experimental-features = "nix-command flakes";
nix.settings = {
substituters = [
"http://nix-cache"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"nix-ccache-1:<base32pubkeyhashfromcache-pub.pem>"
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
};
{
programs.git = {
enable = true;
package = pkgs.git.override { withLibsecret = true; };
extraConfig = {
credential.helper = "libsecret";
};
};
}
}