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 | dbcdd7b4199b46140d8010642d6dc84d5f7e3f8c (patch) | |
tree | 1dd29e2f50a360d0e6265b156318f95f6201465e /2configs/nginx/iso.euer.nix | |
parent | 976f683915dd683b29eb995d73e49459ddc12e00 (diff) |
ma iso.euer.krebsco.de: init
Diffstat (limited to '2configs/nginx/iso.euer.nix')
-rw-r--r-- | 2configs/nginx/iso.euer.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2configs/nginx/iso.euer.nix b/2configs/nginx/iso.euer.nix new file mode 100644 index 000000000..63ef380fa --- /dev/null +++ b/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; + }; + }; + }; + }; +} |