From 19d4b1c1151dfdae5155d388bcb2c1f1b17793c5 Mon Sep 17 00:00:00 2001 From: ant Date: Wed, 25 Jun 2025 19:47:02 +0200 Subject: [PATCH] add build-all to flake.nix --- flake.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index caee268..7946a87 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ }; outputs = - { nixpkgs, ... }@inputs: + { self, nixpkgs, ... }@inputs: let system = "x86_64-linux"; pkgs = inputs.nixpkgs.legacyPackages.${system}; @@ -104,5 +104,24 @@ system = "x86_64-linux"; modules = [ ./os/hs/configuration.nix ]; }; + + build-all = pkgs.runCommandNoCC "build-all" { + buildInputs = + let osDerivation = name: self.nixosConfigurations.${name}.config.system.build.toplevel; in + let homeDerivation = name: self.homeConfigurations.${name}.activationPackage; in + [ + (osDerivation "basado") + (osDerivation "moon") + (osDerivation "hs") + (homeDerivation "anvaure@Allegro23-12") + (homeDerivation "ant@hs") + (homeDerivation "ant@basado") + (homeDerivation "ant@moon") + ]; + } '' + echo Build all derivations + mkdir -p $out + ''; + }; }