1
0
Fork 0

Remove substitution shenanigans

This commit is contained in:
Malte Brandy 2020-10-01 07:54:34 +02:00
parent ed9148f703
commit bd41003d83
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
5 changed files with 0 additions and 48 deletions

View file

@ -17,7 +17,6 @@ in {
../../roles/fonts.nix
../../roles/boot-key.nix
../../roles/standalone
../../roles/use-cache.nix
];
networking = {

View file

@ -22,7 +22,6 @@ in {
../../roles/email2matrix.nix
../../roles/matrix-synapse.nix
../../roles/coturn.nix
../../roles/serve-store.nix
../../roles/go-neb.nix
./web.nix
./mail.nix

View file

@ -1,20 +0,0 @@
{ config, pkgs, lib, ... }:
let inherit (import ../../lib) sources;
local-nix-cache = import sources.local-nix-cache { };
in {
imports = [ (local-nix-cache.path + "/module.nix") ];
local-nix-cache = {
server.enable = true;
client.enable = true;
};
networking.firewall.allowedTCPPorts = [ config.local-nix-cache.server.port ];
systemd.services.local-nix-cache.path = [ local-nix-cache.nix ];
systemd.services.local-nix-cache.serviceConfig.Restart = "always";
services.avahi.enable = true;
services.avahi.publish.enable = true;
services.avahi.publish.userServices = true;
}

View file

@ -1,19 +0,0 @@
{ config, ... }: {
services = {
nix-serve = {
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
nginx = {
enable = true;
virtualHosts."binarycache" = {
listen = [{
addr = "[::]";
port = 5001;
}];
locations."/".proxyPass =
"http://127.0.0.1:${toString config.services.nix-serve.port}";
};
};
};
}

View file

@ -1,7 +0,0 @@
{ lib, ... }: {
nix = {
binaryCaches = lib.mkAfter [ "http://hera:5001" ];
binaryCachePublicKeys =
[ "hera:dPBUx652Yr9s2pQDeHRQ5dl5zSuo+j94AyvJGZJaMFw=" ];
};
}