From f90ac47d91a040cba99ddff4842e5325ffe5217f Mon Sep 17 00:00:00 2001 From: reo101 Date: Sat, 27 Jul 2024 13:39:33 +0300 Subject: [PATCH] feat(topology): add `legacyPackages` package for convenience Can now also build with (1) instead of just (2) - `nix build .#topology` (from `legacyPackages`, hidden in `nix flake show`) - `nix build .#topology.${system}.config.output` (raw flake output) --- modules/flake/topology/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/flake/topology/default.nix b/modules/flake/topology/default.nix index 005f1a2..e7b3a60 100644 --- a/modules/flake/topology/default.nix +++ b/modules/flake/topology/default.nix @@ -50,6 +50,12 @@ }; }; in { + # NOTE: hide from `nix flake show` + # requires `allow-import-from-derivation` + legacyPackages = { + topology = self.topology.${system}.config.output; + }; + topology = { # nixosConfigurations = { # inherit (self.nixosConfigurations)