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

26
packages/flake-module.nix Normal file
View File

@@ -0,0 +1,26 @@
{ inputs, self, ... }:
{
flake.packages.aarch64-linux.genepi-installer-sd-image = inputs.nixos-generators.nixosGenerate {
specialArgs = {
inherit inputs;
};
system = "aarch64-linux";
format = "sd-aarch64-installer";
modules = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
self.nixosModules.common
self.nixosModules.hardened-ssh-server
./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; });
})
];
}
];
};
}