move genepi installer to another file
This commit is contained in:
27
flake.nix
27
flake.nix
@@ -8,7 +8,6 @@
|
|||||||
flake-parts,
|
flake-parts,
|
||||||
home-manager,
|
home-manager,
|
||||||
impermanence,
|
impermanence,
|
||||||
nixos-generators,
|
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
self,
|
self,
|
||||||
...
|
...
|
||||||
@@ -22,37 +21,13 @@
|
|||||||
./home-manager/flake-module.nix
|
./home-manager/flake-module.nix
|
||||||
./machines/flake-module.nix
|
./machines/flake-module.nix
|
||||||
./modules/flake-module.nix
|
./modules/flake-module.nix
|
||||||
|
./packages/flake-module.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-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 = {
|
inputs = {
|
||||||
|
|||||||
26
packages/flake-module.nix
Normal file
26
packages/flake-module.nix
Normal 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; });
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user