2024-11-06 08:05:41 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; {
|
2024-10-31 12:48:51 +00:00
|
|
|
imports = [
|
|
|
|
./link-inputs.nix
|
|
|
|
./lix.nix
|
2024-10-31 18:08:50 +00:00
|
|
|
./autoupdater.nix
|
2024-11-06 09:09:17 +00:00
|
|
|
./build-server.nix
|
2024-10-31 12:48:51 +00:00
|
|
|
];
|
|
|
|
nix.settings = {
|
2024-11-06 08:05:41 +00:00
|
|
|
substituters = mkMerge [
|
|
|
|
["https://attic.chir.rs/chir-rs/"]
|
|
|
|
(mkIf (!config.isInstaller) ["https://hydra.int.chir.rs"])
|
|
|
|
(mkIf config.isInstaller ["https://hydra.chir.rs"])
|
2024-10-31 12:48:51 +00:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg="
|
|
|
|
"hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
|
|
|
|
"chir-rs:rzK1Czm3RqBbZLnXYrLM6JyOhfr6Z/8lhACIPO/LNFQ="
|
|
|
|
];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
experimental-features = "nix-command flakes ca-derivations";
|
|
|
|
};
|
|
|
|
nix.gc = {
|
2024-10-31 18:14:12 +00:00
|
|
|
automatic = config.nix.enable;
|
2024-10-31 12:48:51 +00:00
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
}
|