summaryrefslogtreecommitdiffstats
path: root/lass/2configs/binary-cache/server.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-09-09 19:42:08 +0200
committermakefu <github@syntax-fehler.de>2023-09-09 19:42:08 +0200
commit29d72c898d674d2c18fc0f4a76b5e623de0c3dfe (patch)
treefc4b0695c986a1cda6f1fbbbcbe716e203c54fa3 /lass/2configs/binary-cache/server.nix
parente157ffa72856e4378aa23b096b2efff233f3cb3d (diff)
parent083229d0211096daec08673f743ccc45b1d8a0ac (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/binary-cache/server.nix')
-rw-r--r--lass/2configs/binary-cache/server.nix31
1 files changed, 0 insertions, 31 deletions
diff --git a/lass/2configs/binary-cache/server.nix b/lass/2configs/binary-cache/server.nix
deleted file mode 100644
index bdd568c15..000000000
--- a/lass/2configs/binary-cache/server.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-{ config, lib, pkgs, ...}:
-{
- nixpkgs.config.packageOverrides = p: {
- nix-serve = p.haskellPackages.nix-serve-ng;
- };
- # generate private key with:
- # nix-store --generate-binary-cache-key my-secret-key my-public-key
- services.nix-serve = {
- enable = true;
- secretKeyFile = toString <secrets> + "/nix-serve.key";
- port = 5005;
- };
-
- services.nginx = {
- enable = true;
- virtualHosts.nix-serve = {
- serverAliases = [ "cache.${config.networking.hostName}.r" ];
- locations."/".extraConfig = ''
- proxy_pass http://localhost:${toString config.services.nix-serve.port};
- '';
- locations."= /nix-cache-info".extraConfig = ''
- alias ${pkgs.writeText "cache-info" ''
- StoreDir: /nix/store
- WantMassQuery: 1
- Priority: 42
- ''};
- '';
- };
- };
-}
-