Flake parts with x64 and ARM support for devshell on both Linux and Mac

This commit is contained in:
2023-07-01 18:30:30 -05:00
parent baf8223799
commit cfe907101d
20 changed files with 137 additions and 96 deletions

23
nix/system/nix-conf.nix Normal file
View File

@ -0,0 +1,23 @@
{ config, ... }: {
services = {
nix-serve = {
enable = true;
secretKeyFile = config.age.secrets.cache-key.path;
};
};
nix = {
buildMachines = [
{
hostName = "localhost";
system = "x86_64-linux";
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ];
maxJobs = 8;
}
];
distributedBuilds = false;
settings = {
auto-optimise-store = false; # https://github.com/NixOS/nix/issues/7273
experimental-features = [ "nix-command" "flakes" ];
};
};
}