add build-all to flake.nix
This commit is contained in:
parent
5a0c6f02dd
commit
19d4b1c115
1 changed files with 20 additions and 1 deletions
21
flake.nix
21
flake.nix
|
|
@ -16,7 +16,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ nixpkgs, ... }@inputs:
|
{ self, nixpkgs, ... }@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
|
|
@ -104,5 +104,24 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./os/hs/configuration.nix ];
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue