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 {