2019-11-29 15:52:06 +01:00
|
|
|
{ config, lib, ... }:
|
2019-07-02 21:11:32 +02:00
|
|
|
|
2019-11-29 15:52:06 +01:00
|
|
|
let
|
|
|
|
notHydra = config.networking.hostName != "hydra";
|
|
|
|
notServer7 = config.networking.hostName != "server7";
|
|
|
|
port = toString config.services.nix-serve.port;
|
|
|
|
in {
|
2019-09-05 17:05:14 +02:00
|
|
|
networking.domain = "hq.c3d2.de";
|
|
|
|
|
2019-11-29 15:52:06 +01:00
|
|
|
nix = {
|
|
|
|
binaryCaches = [ ]
|
|
|
|
++ (lib.optional notHydra "http://hydra.hq.c3d2.de:${port}")
|
|
|
|
++ (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-09 13:59:47 +01:00
|
|
|
users.motd = builtins.readFile ./motd;
|
2019-07-02 21:11:32 +02:00
|
|
|
}
|