2022-01-27 16:16:42 +00:00
|
|
|
{ pkgs, lib, ... }: {
|
|
|
|
imports = [
|
|
|
|
./workarounds
|
|
|
|
];
|
2022-01-14 13:03:14 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix = {
|
2022-02-08 08:55:28 +00:00
|
|
|
settings = {
|
|
|
|
sandbox = true;
|
|
|
|
trusted-users = [ "@wheel" ];
|
2022-04-12 09:37:53 +00:00
|
|
|
require-sigs = true;
|
2022-02-08 08:55:28 +00:00
|
|
|
auto-optimise-store = true;
|
2022-02-08 09:48:37 +00:00
|
|
|
builders-use-substitutes = true;
|
2022-03-03 07:50:45 +00:00
|
|
|
substituters = [
|
2022-04-13 12:55:50 +00:00
|
|
|
"https://f000.backblazeb2.com/file/cache-chir-rs/"
|
2022-04-12 09:33:58 +00:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg="
|
|
|
|
"hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
|
2022-03-03 07:50:45 +00:00
|
|
|
];
|
2022-02-08 08:55:28 +00:00
|
|
|
};
|
2022-02-28 14:25:41 +00:00
|
|
|
package = pkgs.nixFlakes;
|
2022-01-14 13:03:14 +00:00
|
|
|
extraOptions = ''
|
2022-04-12 07:47:15 +00:00
|
|
|
experimental-features = nix-command flakes
|
2022-01-14 13:03:14 +00:00
|
|
|
'';
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
optimise = {
|
|
|
|
automatic = true;
|
|
|
|
dates = [ "weekly" ];
|
|
|
|
};
|
2022-02-08 09:48:37 +00:00
|
|
|
buildMachines = [
|
2022-03-22 13:51:13 +00:00
|
|
|
{
|
|
|
|
hostName = "build-nas";
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
maxJobs = 12;
|
|
|
|
speedFactor = 1;
|
2022-04-12 07:47:15 +00:00
|
|
|
supportedFeatures = [ "gccarch-znver1" ];
|
2022-03-22 13:51:13 +00:00
|
|
|
}
|
2022-03-20 07:02:54 +00:00
|
|
|
{
|
|
|
|
hostName = "build-pc";
|
|
|
|
systems = [
|
|
|
|
"armv7l-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"powerpc-linux"
|
|
|
|
"powerpc64-linux"
|
|
|
|
"powerpc64le-linux"
|
|
|
|
"riscv32-linux"
|
|
|
|
"riscv64-linux"
|
|
|
|
"wasm32-wasi"
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
];
|
|
|
|
maxJobs = 16;
|
|
|
|
speedFactor = 1;
|
2022-04-12 07:47:15 +00:00
|
|
|
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" "gccarch-znver2" ];
|
2022-03-20 07:02:54 +00:00
|
|
|
}
|
2022-02-08 09:48:37 +00:00
|
|
|
];
|
|
|
|
distributedBuilds = true;
|
2022-01-14 13:03:14 +00:00
|
|
|
};
|
2022-01-14 13:07:01 +00:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
2022-04-15 10:04:57 +00:00
|
|
|
flake = "github:DarkKirb/nixos-config/staging";
|
2022-01-14 13:07:01 +00:00
|
|
|
flags = [
|
|
|
|
"--no-write-lock-file"
|
|
|
|
"-L" # print build logs
|
|
|
|
];
|
2022-02-18 19:43:14 +00:00
|
|
|
dates = "hourly";
|
2022-01-14 13:07:01 +00:00
|
|
|
};
|
2022-01-27 16:16:42 +00:00
|
|
|
systemd.services.nix-daemon.environment.TMPDIR = "/build";
|
2022-01-14 13:03:14 +00:00
|
|
|
}
|