diff --git a/flake.nix b/flake.nix index 789c189..a25bcd7 100644 --- a/flake.nix +++ b/flake.nix @@ -46,15 +46,15 @@ ] else [ ./nixos/common/generic-vm.nix ]); - mkConfig = { hostname, ... }@host: { - "${hostname}" = lib.nixosSystem { + mkConfig = { hostname, location, ... }@host: { + "${hostname}.${location}" = lib.nixosSystem { inherit system specialArgs; modules = resolveImports host; }; }; mkColmenaHost = { ip, hostname, tags, location, ... }@host: { - "${hostname}" = { + "${hostname}.${location}" = { imports = resolveImports host; networking = { hostName = hostname; diff --git a/nixos/hosts/olympus/nginx/configuration.nix b/nixos/hosts/olympus/nginx/configuration.nix index a9ccc83..714cff1 100644 --- a/nixos/hosts/olympus/nginx/configuration.nix +++ b/nixos/hosts/olympus/nginx/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, nodes, ... }: let proxy = url: { enableACME = true;