ma iso.euer.krebsco.de: init

This commit is contained in:
makefu 2018-09-10 13:56:24 +02:00
parent bad9a3d59b
commit 3be10ef41a
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 26 additions and 0 deletions

View File

@ -11,6 +11,7 @@ with import <stockholm/lib>;
# TODO: NIX_PATH and nix.nixPath are being set by default.nix right now
# cd ~/stockholm ; nix-build -A config.system.build.isoImage -I nixos-config=makefu/1systems/iso.nix -I secrets=/home/makefu/secrets/iso /var/src/nixpkgs/nixos
krebs.build.host = config.krebs.hosts.iso;
isoImage.isoBaseName = lib.mkForce "stockholm";
krebs.hidden-ssh.enable = true;
environment.systemPackages = with pkgs; [
aria2

View File

@ -0,0 +1,25 @@
{config, pkgs, ... }:
let
system = builtins.currentSystem; #we can also build for other platforms
iso = (import <nixpkgs/nixos/lib/eval-config.nix>
{ inherit system;
modules = [ ../../1systems/iso/config.nix ]; }
);
image = iso.config.system.build.isoImage;
name = iso.config.isoImage.isoName;
in
{
services.nginx = {
virtualHosts = {
"iso.euer.krebsco.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
root = "${image}/iso";
index = name;
};
};
};
};
}