building laserproxy from hscloud monorepo

master
vuko 2020-10-29 02:49:50 +01:00
parent ff921234ee
commit 9e49d50298
1 changed files with 21 additions and 1 deletions

View File

@ -1,7 +1,23 @@
{ pkgs, ... }:
let
laserproxy = import ./default.nix { pkgs = pkgs; };
hscloudSrc = fetchGit {
url = "https://gerrit.hackerspace.pl/hscloud.git";
name = "hscloud";
rev = "b1de757249ec13a4bdd70e900b90c31851725ebd";
};
# building this is pretty much impossible on customs. Build it on another machine:
# local $ # get this from a nixos-rebuild build output on customs
# local $ deriv=/nix/store/0qn1xw00bsdndlpllbpis8pm6y0qmb3s-laserproxy.drv
# local $ nix-copy-closure --from root@customs.hackerspace.pl $deriv
# local $ nix build $deriv
# local $ nix-copy-closure --to root@customs.hackerspace.pl $deriv -s --include-outputs
# customs # nixos-rebuild build
hscloud = import "${hscloudSrc}/default.nix" {};
laserproxy = hscloud.hswaw.laserproxy;
#laserproxy = import ./default.nix { pkgs = pkgs; };
name = "laserproxy";
user = name;
group = name;
@ -23,6 +39,10 @@ in {
};
services.nginx.virtualHosts."laser.waw.hackerspace.pl" = {
listen = [
{ addr = "10.8.1.2"; port=80; ssl=false; }
#{ addr = "10.8.1.2"; port=433; ssl=true; }
];
locations."/" = {
proxyPass = "http://127.0.0.1:2137/";
extraConfig = ''