diff options
author | makefu <github@syntax-fehler.de> | 2018-09-10 14:56:24 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-09-10 15:30:28 +0200 |
commit | 9d2749e5caa4b3c8e3208c821199d9c2484c349b (patch) | |
tree | 6e75e6a4a84a0ad764ab7f9ede70d674121fafa0 /makefu/2configs | |
parent | 3be10ef41a1f72ad39a11576df180f44b435d8c5 (diff) |
ma iso.euer.krebsco.de: expose iso as drivedroid repo
Diffstat (limited to 'makefu/2configs')
-rw-r--r-- | makefu/2configs/nginx/iso.euer.nix | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/makefu/2configs/nginx/iso.euer.nix b/makefu/2configs/nginx/iso.euer.nix index 63ef380fa..522b7f6f8 100644 --- a/makefu/2configs/nginx/iso.euer.nix +++ b/makefu/2configs/nginx/iso.euer.nix @@ -1,4 +1,4 @@ -{config, pkgs, ... }: +{ config, pkgs, ... }: let system = builtins.currentSystem; #we can also build for other platforms iso = (import <nixpkgs/nixos/lib/eval-config.nix> @@ -8,6 +8,25 @@ let ); image = iso.config.system.build.isoImage; name = iso.config.isoImage.isoName; + + drivedroid-cfg = builtins.toJSON [{ + id = "stockholm"; + name = "stockholm"; + tags = [ "hybrid" ]; + url = http://krebsco.de; + releases = [ + { version = iso.config.system.nixos.label; + url = "/stockholm.iso"; + arch = system; } + ]; + # size = TODO; + }]; + web = pkgs.linkFarm "web" [{ + name = "drivedroid.json"; + path = pkgs.writeText "drivedroid.json" drivedroid-cfg; } + { name = "stockholm.iso"; + path = "${image}/iso/${name}"; } + ]; in { services.nginx = { @@ -15,10 +34,8 @@ in "iso.euer.krebsco.de" = { enableACME = true; forceSSL = true; - locations."/" = { - root = "${image}/iso"; - index = name; - }; + root = web; + locations."/".index = "drivedroid.json"; }; }; }; |