From 8412cb21d7b124f3e7e556198347077389d7ed46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 22 Aug 2024 16:53:07 +0000 Subject: [PATCH] chore: make sourcehut take the base-domain as an argument --- configuration.nix | 7 +++++-- sourcehut.nix | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 68f3d34..442e34b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,11 +1,14 @@ # vim: tabstop=2 shiftwidth=2 expandtab +let + base-domain = "005540.xyz"; +in { pkgs, ... }: { imports = [ ./hardware-configuration.nix ./firewall.nix - (import ./acme.nix { base-domain = "005540.xyz"; }) + (import ./acme.nix { inherit base-domain; }) + (import ./sourcehut.nix { inherit base-domain; }) ./userprogs.nix - ./sourcehut.nix ]; boot.tmp.cleanOnBoot = true; diff --git a/sourcehut.nix b/sourcehut.nix index 8d290fd..2ffaec0 100644 --- a/sourcehut.nix +++ b/sourcehut.nix @@ -1,6 +1,6 @@ # vim: tabstop=2 shiftwidth=2 expandtab +{ base-domain, ... }: let - base-domain = "005540.xyz"; fqdn = "sourcehut.${base-domain}"; in {