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
|
nixpkgs.lib.mapAttrs
|
||||||
(hostname: cfg:
|
(hostname: cfg:
|
||||||
mkSystem cfg.arch nixpkgs cfg.configurationPath hostname)
|
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
|
let
|
||||||
mkEphemeral = system: nixpkgs.lib.nixosSystem {
|
mkEphemeral = system: nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
@@ -169,21 +171,13 @@
|
|||||||
};
|
};
|
||||||
in
|
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" = {
|
"x86_64-linux" = {
|
||||||
kexec = self.nixosConfigurations.ephemeral-x86_64.config.system.build.images.kexec;
|
kexec = (mkEphemeral "x86_64-linux").config.system.build.images.kexec;
|
||||||
iso = self.nixosConfigurations.ephemeral-x86_64.config.system.build.images.iso;
|
iso = (mkEphemeral "x86_64-linux").config.system.build.images.iso;
|
||||||
};
|
};
|
||||||
"aarch64-linux" = {
|
"aarch64-linux" = {
|
||||||
kexec = self.nixosConfigurations.ephemeral-aarch64.config.system.build.images.kexec;
|
kexec = (mkEphemeral "aarch64-linux").config.system.build.images.kexec;
|
||||||
iso = self.nixosConfigurations.ephemeral-aarch64.config.system.build.images.iso;
|
iso = (mkEphemeral "aarch64-linux").config.system.build.images.iso;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user