diff options
-rw-r--r-- | config/orbekk-pkgs.nix | 10 | ||||
-rw-r--r-- | config/web-server.nix | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/config/orbekk-pkgs.nix b/config/orbekk-pkgs.nix new file mode 100644 index 0000000..646a49f --- /dev/null +++ b/config/orbekk-pkgs.nix @@ -0,0 +1,10 @@ +# Requires something like this in nixPath: +# "orbekk=https://hydra.orbekk.com/project/orbekk-projects/channel/latest/nixexprs.tar.bz2" +{ config, lib, pkgs, ... }: +let + orbekkPkgs = import <orbekk> {}; +in +{ + nixpkgs.config.packageOverrides = pkgs: { + } // orbekkPkgs; +}
\ No newline at end of file diff --git a/config/web-server.nix b/config/web-server.nix index 72613a6..bb40c12 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -1,5 +1,7 @@ { config, lib, pkgs, ... }: { + imports = [ ./orbekk-pkgs.nix ]; + networking.firewall.allowedTCPPorts = [ 80 443 ]; services.nginx = { enable = true; @@ -23,6 +25,9 @@ "kj.orbekk.com" = { enableACME = true; forceSSL = true; + locations."/beta" = { + root = "${pkgs.www-orbekk}" + }; locations."/".proxyPass = "http://10.0.20.11:8011"; locations."/hledger" = { extraConfig = ''return 302 /hledger/;''; |