From d7638138edb0440838fa0c758c41815d9a1edc5f Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sun, 26 Nov 2023 02:36:23 +0100 Subject: [PATCH] brzeczyszczykiewicz: add bokhylle as alias for the grzegorz service --- hosts/brzeczyszczykiewicz/configuration.nix | 2 +- hosts/brzeczyszczykiewicz/services/grzegorz.nix | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 hosts/brzeczyszczykiewicz/services/grzegorz.nix diff --git a/hosts/brzeczyszczykiewicz/configuration.nix b/hosts/brzeczyszczykiewicz/configuration.nix index 80ad098..77cce17 100644 --- a/hosts/brzeczyszczykiewicz/configuration.nix +++ b/hosts/brzeczyszczykiewicz/configuration.nix @@ -6,7 +6,7 @@ ../../base.nix ../../misc/metrics-exporters.nix - ../../modules/grzegorz.nix + ./services/grzegorz.nix ]; boot.loader.systemd-boot.enable = true; diff --git a/hosts/brzeczyszczykiewicz/services/grzegorz.nix b/hosts/brzeczyszczykiewicz/services/grzegorz.nix new file mode 100644 index 0000000..20574fe --- /dev/null +++ b/hosts/brzeczyszczykiewicz/services/grzegorz.nix @@ -0,0 +1,11 @@ +{ config, ... }: +{ + imports = [ ../../../modules/grzegorz.nix ]; + + services.nginx.virtualHosts."${config.networking.fqdn}" = { + serverAliases = [ + "bokhylle.pvv.ntnu.no" + "bokhylle.pvv.org" + ]; + }; +}