update nix caches

This commit is contained in:
k3t
2026-06-01 19:02:52 -06:00
parent 55af0a9edc
commit 92a7ae357d
4 changed files with 26 additions and 8 deletions
+20
View File
@@ -1,6 +1,26 @@
{
description = "NixOS configs";
nixConfig = {
extra-substituters = [
"https://binarycache.k3t.dev"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"binarycache.k3t.dev:cmIg4sWTZ729F1yEF2AYLtSbUXJGFYwM6tzYYF18qts="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
nix.settings = {
optimise.automatic = true;
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 2d";
};
};
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
impermanence.url = "github:nix-community/impermanence";
+4
View File
@@ -3,4 +3,8 @@
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
services.nginx.virtualHosts."binarycache.k3t.dev" = {
enableACME = true;
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
};
}
+1 -1
View File
@@ -1,4 +1,4 @@
{
boot.binfmt.preferStaticEmulators = true;
boot.binfmt.emulatedSystems = [ "x86_64-linux" "i386-linux" ];
#boot.binfmt.emulatedSystems = [ "x86_64-linux" "i386-linux" ];
}
+1 -7
View File
@@ -8,16 +8,10 @@
"https://cache.nixos.org/"
];
trusted-public-keys = [
"binarycache.k3t.dev:cmIg4sWTZ729F1yEF2AYLtSbUXJGFYwM6tzYYF18qts=#"
"binarycache.k3t.dev:cmIg4sWTZ729F1yEF2AYLtSbUXJGFYwM6tzYYF18qts="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
optimise.automatic = true;
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 2d";
};
};
nixpkgs.config.allowUnfree = true;
}