Fix CI build. Ephemeral targets should not be in nixosConfigurations
All checks were successful
Check Flake / check-flake (push) Successful in 17m45s
All checks were successful
Check Flake / check-flake (push) Successful in 17m45s
This commit is contained in:
24
flake.nix
24
flake.nix
@@ -156,9 +156,11 @@
|
||||
nixpkgs.lib.mapAttrs
|
||||
(hostname: cfg:
|
||||
mkSystem cfg.arch nixpkgs cfg.configurationPath hostname)
|
||||
machineHosts
|
||||
//
|
||||
(
|
||||
machineHosts;
|
||||
|
||||
# kexec produces a tarball; for a self-extracting bundle see:
|
||||
# https://github.com/nix-community/nixos-generators/blob/master/formats/kexec.nix#L60
|
||||
packages =
|
||||
let
|
||||
mkEphemeral = system: nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
@@ -169,21 +171,13 @@
|
||||
};
|
||||
in
|
||||
{
|
||||
ephemeral-x86_64 = mkEphemeral "x86_64-linux";
|
||||
ephemeral-aarch64 = mkEphemeral "aarch64-linux";
|
||||
}
|
||||
);
|
||||
|
||||
# kexec produces a tarball; for a self-extracting bundle see:
|
||||
# https://github.com/nix-community/nixos-generators/blob/master/formats/kexec.nix#L60
|
||||
packages = {
|
||||
"x86_64-linux" = {
|
||||
kexec = self.nixosConfigurations.ephemeral-x86_64.config.system.build.images.kexec;
|
||||
iso = self.nixosConfigurations.ephemeral-x86_64.config.system.build.images.iso;
|
||||
kexec = (mkEphemeral "x86_64-linux").config.system.build.images.kexec;
|
||||
iso = (mkEphemeral "x86_64-linux").config.system.build.images.iso;
|
||||
};
|
||||
"aarch64-linux" = {
|
||||
kexec = self.nixosConfigurations.ephemeral-aarch64.config.system.build.images.kexec;
|
||||
iso = self.nixosConfigurations.ephemeral-aarch64.config.system.build.images.iso;
|
||||
kexec = (mkEphemeral "aarch64-linux").config.system.build.images.kexec;
|
||||
iso = (mkEphemeral "aarch64-linux").config.system.build.images.iso;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user