add nixosModules.default alias for single-import deploy
This commit is contained in:
parent
6a643f2fd2
commit
08913484cc
2 changed files with 9 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue