nix-config/lib/hq.nix

26 lines
656 B
Nix
Raw Normal View History

{ config, lib, ... }:
2019-07-02 21:11:32 +02:00
let
notHydra = config.networking.hostName != "hydra";
notServer7 = config.networking.hostName != "server7";
port = toString config.services.nix-serve.port;
in {
nix = {
binaryCaches = [ ]
2019-11-29 15:52:06 +01:00
++ (lib.optional notHydra "https://nix-serve.hq.c3d2.de")
++ (lib.optional notServer7 "http://server7.hq.c3d2.de:${port}");
binaryCachePublicKeys = [
"nix-serve.hq.c3d2.de:FEi9GyFkou1Ua8INaEKmuGaww9E5y3XwrNGNRfKYeLo="
"server7:PxMuG2KvTibHSqOWi+6bY6fbv2ztjzbSEZHVIna/sRA="
];
2019-07-02 21:11:32 +02:00
};
2019-11-29 21:51:20 +01:00
# Please import only things that are configurable and OFF BY DEFAULT!
imports = [
./yggdrasil-hq.nix
];
2019-07-02 21:11:32 +02:00
}