add nixosModules.default alias for single-import deploy

This commit is contained in:
damocles 2026-05-20 21:52:01 +02:00 committed by Mara
parent 6a643f2fd2
commit 08913484cc
2 changed files with 9 additions and 1 deletions

View file

@ -59,7 +59,7 @@ Minimal `flake.nix` for a host that runs hive-c0re:
nixosConfigurations.my-host = nixpkgs.lib.nixosSystem { nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
hyperhive.nixosModules.hive-c0re hyperhive.nixosModules.default # hive-c0re + hive-forge in one import
({ ... }: { ({ ... }: {
services.hive-c0re.enable = true; services.hive-c0re.enable = true;
# services.hive-c0re.operatorPronouns = "they/them"; # default: "she/her" # services.hive-c0re.operatorPronouns = "they/them"; # default: "she/her"

View file

@ -99,6 +99,14 @@
hyperhiveFlake = "${self}"; hyperhiveFlake = "${self}";
}; };
hive-forge = ./nix/modules/hive-forge.nix; 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 = nixosConfigurations =