Files
nixos/modules-all/automatic/nix.nix
T
2023-01-22 00:00:51 -06:00

35 lines
654 B
Nix

{ pkgs, ... }:
{
# Enable flakes
nix = {
package = pkgs.nixFlakes;
buildMachines = [
{
hostName = "dns.me.ts";
system = "aarch64-linux";
}
{
hostName = "jude.me.ts";
system = "x86_64-linux";
}
];
settings = {
experimental-features = "nix-command flakes";
keep-outputs = true;
keep-derivations = true;
min-free = (toString (1024 * 1024 * 1024) );
max-free = (toString (5 * 1024 * 1024 * 1024) );
substituters = [
"https://cache.garnix.io"
];
trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
};
};
nixpkgs.config.allowUnfree = true;
}