From 2b266f8ab462cb5c627ee0c473a8a69aa08fcf00 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 30 Sep 2019 17:04:17 +0200 Subject: [PATCH] Update hydra configuration --- hosts/hydra/cache.nix | 7 +++++++ hosts/hydra/configuration.nix | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/hosts/hydra/cache.nix b/hosts/hydra/cache.nix index e5a3b84b..ba29afb9 100644 --- a/hosts/hydra/cache.nix +++ b/hosts/hydra/cache.nix @@ -18,4 +18,11 @@ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; ''; }; + + services.nginx.virtualHosts."depot.hq.c3d2.de" = { + forceSSL = true; + enableACME = true; + locations."/".root = "/srv/www/depot"; + }; + } diff --git a/hosts/hydra/configuration.nix b/hosts/hydra/configuration.nix index 1898ed0e..327fc5e0 100644 --- a/hosts/hydra/configuration.nix +++ b/hosts/hydra/configuration.nix @@ -17,6 +17,8 @@ nix.useSandbox = false; nix.maxJobs = lib.mkDefault 4; + nix.autoOptimiseStore = true; + nix.gc = { automatic = true; dates = "06:00"; options = "--delete-older-than 7d"; }; boot.isContainer = true; boot.loader.initScript.enable = true; @@ -29,6 +31,9 @@ networking.hostName = "192"; networking.useNetworkd = true; + networking.nameservers = [ "172.20.73.8" ]; + # caused problems on this host -- Astro 2019-09-08 + services.resolved.enable = false; # Set your time zone. time.timeZone = "Europe/Berlin";