From 82a01804148175b825672b2a5aaad8ed264ad5fe Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Mon, 23 Sep 2024 12:47:18 +1000
Subject: [PATCH] flake: use host prefix for darwin and nixos configuations

---
 flake.nix | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/flake.nix b/flake.nix
index 54247a0..ca9f860 100644
--- a/flake.nix
+++ b/flake.nix
@@ -123,11 +123,11 @@
           checks =
             let
               darwinConfigurations = lib.mapAttrs' (
-                name: config: lib.nameValuePair name config.config.system.build.toplevel
+                name: config: lib.nameValuePair "host-${name}" config.config.system.build.toplevel
               ) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.darwinConfigurations);
               devShells = lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells;
               nixosConfigurations = lib.mapAttrs' (
-                name: config: lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel
+                name: config: lib.nameValuePair "host-${name}" config.config.system.build.toplevel
               ) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.nixosConfigurations);
             in
             darwinConfigurations