Commit 06bc4bf1f5a8
Changed files (3)
machine
modules
services
machine/massimo.nix
@@ -22,6 +22,7 @@ with import ../assets/machines.nix; {
nix-binary-cache = {
enable = true;
domain = "massimo.local";
+ aliases = ["cache.massimo.home"];
};
athens = {
enable = true;
modules/services/nix-binary-cache.nix
@@ -16,6 +16,11 @@ in
description = "domain to serve";
type = types.str;
};
+ aliases = mkOption {
+ default = [];
+ description = "server aliases to serve";
+ type = types.listOf types.str;
+ };
};
};
config = mkIf cfg.enable {
@@ -34,6 +39,7 @@ in
access_log logs/access.log;
'';
virtualHosts."${cfg.domain}" = {
+ serverAliases = cfg.aliases;
# enableACME = true;
locations."/" = {
modules/module-list.nix
@@ -28,8 +28,8 @@
./profiles/yubikey.nix
./programs/podman.nix
./services/athens.nix
- ./services/syncthing.nix
./services/nix-binary-cache.nix
+ ./services/syncthing.nix
./services/wireguard.client.nix
./virtualisation/buildkit.nix
./virtualisation/containerd.nix