forked from kalipso/infrastructure
[nix] add nixosConfigs as hydraJobs
This commit is contained in:
@@ -62,7 +62,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
lucia_sd-img = nixosSystem {
|
sdImageLucia = nixosSystem {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
specialArgs.inputs = inputs;
|
specialArgs.inputs = inputs;
|
||||||
modules = defaultModules ++ [
|
modules = defaultModules ++ [
|
||||||
|
|||||||
15
outputs.nix
15
outputs.nix
@@ -25,6 +25,21 @@ in (utils.lib.eachSystem (builtins.filter filter_system utils.lib.defaultSystems
|
|||||||
|
|
||||||
nixosModules.malobeo = import ./machines/durruti/host_config.nix;
|
nixosModules.malobeo = import ./machines/durruti/host_config.nix;
|
||||||
|
|
||||||
|
hydraJobs = nixpkgs.lib.mapAttrs (_: nixpkgs.lib.hydraJob) (
|
||||||
|
let
|
||||||
|
getBuildEntry = name: nixosSystem:
|
||||||
|
if (nixpkgs.lib.hasPrefix "sdImage" name) then
|
||||||
|
nixosSystem.config.system.build.sdImage
|
||||||
|
else
|
||||||
|
nixosSystem.config.system.build.toplevel;
|
||||||
|
in
|
||||||
|
nixpkgs.lib.mapAttrs getBuildEntry self.nixosConfigurations
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
#lucia = self.nixosConfigurations.lucia.config.system.build.toplevel;
|
||||||
|
|
||||||
|
|
||||||
#images.lucia_base_image = nixosConfigurations.lucia.config.system.build.sdImage;
|
#images.lucia_base_image = nixosConfigurations.lucia.config.system.build.sdImage;
|
||||||
|
|
||||||
#packages.x86_64-linux = {
|
#packages.x86_64-linux = {
|
||||||
|
|||||||
Reference in New Issue
Block a user