diff options
author | makefu <github@syntax-fehler.de> | 2018-09-10 13:56:24 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-09-10 13:56:24 +0200 |
commit | 3be10ef41a1f72ad39a11576df180f44b435d8c5 (patch) | |
tree | 8699b286a0b32749c34afcebd23cd1176daf83a5 | |
parent | bad9a3d59b17d0504bfbfcc693c6c2d5ad34516e (diff) |
ma iso.euer.krebsco.de: init
-rw-r--r-- | makefu/1systems/iso/config.nix | 1 | ||||
-rw-r--r-- | makefu/2configs/nginx/iso.euer.nix | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/makefu/1systems/iso/config.nix b/makefu/1systems/iso/config.nix index f863321bd..34a75dbd3 100644 --- a/makefu/1systems/iso/config.nix +++ b/makefu/1systems/iso/config.nix @@ -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 diff --git a/makefu/2configs/nginx/iso.euer.nix b/makefu/2configs/nginx/iso.euer.nix new file mode 100644 index 000000000..63ef380fa --- /dev/null +++ b/makefu/2configs/nginx/iso.euer.nix @@ -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; + }; + }; + }; + }; +} |