From d2a7379876196b64fe345f47db2ab91d5315857d Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 18 Dec 2024 08:58:08 +0100 Subject: refactor: introduce domains.nix --- nixos/tente-configuration.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'nixos/tente-configuration.nix') diff --git a/nixos/tente-configuration.nix b/nixos/tente-configuration.nix index 3c52332..459fe87 100644 --- a/nixos/tente-configuration.nix +++ b/nixos/tente-configuration.nix @@ -4,7 +4,7 @@ # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). let - domain = "beta.push-f.com"; + domains = import ./domains.nix; acmeEmail = "martin@push-f.com"; in { config, lib, pkgs, ... }: @@ -101,11 +101,10 @@ in group = "www-data"; }; - # My personal website - nginx.virtualHosts.${domain} = { + nginx.virtualHosts.${domains.personalWebsite} = { enableACME = true; forceSSL = true; - root = "/srv/www/${domain}"; + root = "/srv/www/${domains.personalWebsite}"; }; }; -- cgit v1.2.3