add build-all to flake.nix

This commit is contained in:
ant 2025-06-25 19:47:02 +02:00
parent 5a0c6f02dd
commit 19d4b1c115

View file

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