move genepi installer to another file

This commit is contained in:
2025-10-18 18:50:42 +02:00
parent 81c3724ff7
commit f2dc0e6b2f
2 changed files with 27 additions and 26 deletions

View File

@@ -8,7 +8,6 @@
flake-parts,
home-manager,
impermanence,
nixos-generators,
nixos-hardware,
self,
...
@@ -22,37 +21,13 @@
./home-manager/flake-module.nix
./machines/flake-module.nix
./modules/flake-module.nix
./packages/flake-module.nix
];
systems = [
"x86_64-linux"
"aarch64-linux"
];
flake = {
packages.aarch64-linux.genepi-installer-sd-image = nixos-generators.nixosGenerate {
specialArgs = {
inherit inputs;
};
system = "aarch64-linux";
format = "sd-aarch64-installer";
modules = [
nixos-hardware.nixosModules.raspberry-pi-4
./system/core
./machines/genepi/network.nix
./machines/genepi/hardware-configuration.nix
{ networking.hostName = "genepi"; }
{ sdImage.compressImage = false; }
{
nixpkgs.overlays = [
(final: super: {
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
})
];
}
];
};
};
});
inputs = {