on master help sign in
ob deploy: Add obelisk-https module to server imports
commit67ec4bbb1aae359e20b9434fdb287082de870046 authorLuigy Leon <luigy@outlook.com> dateFri 11 May 2018, 12:21 (8 years ago) parent069f31a
1 file changed+15
default.nix+15
default.nix+15
@@ -138,11 +138,26 @@ rec {
138138 server = exe: hostName:
139139 let system = "x86_64-linux";
140140 nixos = import (pkgs.path + /nixos);
141+ https = import (pkgs.fetchFromGitHub {
142+ owner = "obsidiansystems";
143+ repo = "obelisk-https";
144+ rev = "999e36b4ab14cbe31be6815cdbc3a1223a7b4617";
145+ sha256 = "0qxi7hg751ikkp4r5j7d706gjrsl26lzlrnh905havij10plcg1l";
146+ private = true;
147+ } + "/module.nix") {} {
148+ backendPort = 8000; # TODO read from config
149+ # sslConfig = {
150+ # hostName = "example.com";
151+ # adminEmail = "webmaster@example.com";
152+ # subdomains = [ "www" ];
153+ # };
154+ };
141155 in nixos {
142156 inherit system;
143157 configuration = args: {
144158 imports = [
145159 (pkgs.path + /nixos/modules/virtualisation/amazon-image.nix)
160+ https
146161 ];
147162 networking = { inherit hostName; };
148163 systemd.services.backend = {