diff --git a/flake.nix b/flake.nix index d4b0aa0..c0aa52d 100644 --- a/flake.nix +++ b/flake.nix @@ -45,9 +45,9 @@ # (hostName, hostId, per-machine secrets). Every build type except # nix-cache itself consumes the nix-cache substituter and remote # builder. - mkTarget = { platform, buildType, hostPath, homeFile ? ./modules/common/home.nix }: + mkTarget = { platform, buildType, hostPath, homeFile ? ./modules/common/home.nix, nameSuffix ? "" }: let - flakeTarget = "${platform}-${buildType}"; + flakeTarget = "${platform}-${buildType}${nameSuffix}"; in nixpkgs.lib.nixosSystem { inherit system; @@ -131,8 +131,8 @@ lxc-tor-relay = mkTarget { platform = "lxc"; buildType = "tor-relay"; hostPath = ./hosts/tor-relay/host.nix; }; - proxmox-ha-server-1 = mkTarget { platform = "proxmox"; buildType = "ha-server"; hostPath = ./hosts/ha-server-1/host.nix; }; - proxmox-ha-server-2 = mkTarget { platform = "proxmox"; buildType = "ha-server"; hostPath = ./hosts/ha-server-2/host.nix; }; + proxmox-ha-server-1 = mkTarget { platform = "proxmox"; buildType = "ha-server"; hostPath = ./hosts/ha-server-1/host.nix; nameSuffix = "-1"; }; + proxmox-ha-server-2 = mkTarget { platform = "proxmox"; buildType = "ha-server"; hostPath = ./hosts/ha-server-2/host.nix; nameSuffix = "-2"; }; }; # Auto-install environments (migrated from the former nix-auto-installer