From 08913484ccb61584d083ba149dd1f5c136407053 Mon Sep 17 00:00:00 2001 From: damocles Date: Wed, 20 May 2026 21:52:01 +0200 Subject: [PATCH] add nixosModules.default alias for single-import deploy --- README.md | 2 +- flake.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a81a5d8..304c08b 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Minimal `flake.nix` for a host that runs hive-c0re: nixosConfigurations.my-host = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - hyperhive.nixosModules.hive-c0re + hyperhive.nixosModules.default # hive-c0re + hive-forge in one import ({ ... }: { services.hive-c0re.enable = true; # services.hive-c0re.operatorPronouns = "they/them"; # default: "she/her" diff --git a/flake.nix b/flake.nix index aefc28c..db3efb4 100644 --- a/flake.nix +++ b/flake.nix @@ -99,6 +99,14 @@ hyperhiveFlake = "${self}"; }; hive-forge = ./nix/modules/hive-forge.nix; + # Convenience alias: one import covers the full hyperhive host + # stack (hive-c0re + hive-forge, since hive-c0re already pulls + # in hive-forge). Intended usage: + # + # imports = [ hyperhive.nixosModules.default ]; + # services.hive-c0re.enable = true; + # + default = self.nixosModules.hive-c0re; }; nixosConfigurations =