update nix caches
This commit is contained in:
@@ -1,6 +1,26 @@
|
|||||||
{
|
{
|
||||||
description = "NixOS configs";
|
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 = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
|||||||
@@ -3,4 +3,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
secretKeyFile = "/var/cache-priv-key.pem";
|
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,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
boot.binfmt.preferStaticEmulators = true;
|
boot.binfmt.preferStaticEmulators = true;
|
||||||
boot.binfmt.emulatedSystems = [ "x86_64-linux" "i386-linux" ];
|
#boot.binfmt.emulatedSystems = [ "x86_64-linux" "i386-linux" ];
|
||||||
}
|
}
|
||||||
+1
-7
@@ -8,16 +8,10 @@
|
|||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"binarycache.k3t.dev:cmIg4sWTZ729F1yEF2AYLtSbUXJGFYwM6tzYYF18qts=#"
|
"binarycache.k3t.dev:cmIg4sWTZ729F1yEF2AYLtSbUXJGFYwM6tzYYF18qts="
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
optimise.automatic = true;
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "daily";
|
|
||||||
options = "--delete-older-than 2d";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user