ma iso.euer.krebsco.de: expose iso as drivedroid repo
This commit is contained in:
parent
3be10ef41a
commit
9d2749e5ca
@ -1,4 +1,4 @@
|
|||||||
{config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
system = builtins.currentSystem; #we can also build for other platforms
|
system = builtins.currentSystem; #we can also build for other platforms
|
||||||
iso = (import <nixpkgs/nixos/lib/eval-config.nix>
|
iso = (import <nixpkgs/nixos/lib/eval-config.nix>
|
||||||
@ -8,6 +8,25 @@ let
|
|||||||
);
|
);
|
||||||
image = iso.config.system.build.isoImage;
|
image = iso.config.system.build.isoImage;
|
||||||
name = iso.config.isoImage.isoName;
|
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
|
in
|
||||||
{
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
@ -15,10 +34,8 @@ in
|
|||||||
"iso.euer.krebsco.de" = {
|
"iso.euer.krebsco.de" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/" = {
|
root = web;
|
||||||
root = "${image}/iso";
|
locations."/".index = "drivedroid.json";
|
||||||
index = name;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user