chore: make sourcehut take the base-domain as an argument

This commit is contained in:
Khaïs COLIN 2024-08-22 16:53:07 +00:00
parent 65e8baabba
commit 8412cb21d7
2 changed files with 6 additions and 3 deletions

View file

@ -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;

View file

@ -1,6 +1,6 @@
# vim: tabstop=2 shiftwidth=2 expandtab
{ base-domain, ... }:
let
base-domain = "005540.xyz";
fqdn = "sourcehut.${base-domain}";
in
{