Remove substitution shenanigans
This commit is contained in:
parent
ed9148f703
commit
bd41003d83
|
@ -17,7 +17,6 @@ in {
|
|||
../../roles/fonts.nix
|
||||
../../roles/boot-key.nix
|
||||
../../roles/standalone
|
||||
../../roles/use-cache.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ lib, ... }: {
|
||||
nix = {
|
||||
binaryCaches = lib.mkAfter [ "http://hera:5001" ];
|
||||
binaryCachePublicKeys =
|
||||
[ "hera:dPBUx652Yr9s2pQDeHRQ5dl5zSuo+j94AyvJGZJaMFw=" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue