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 + ''; + }; }