diff --git a/modules/hosts/pi4/configuration.nix b/modules/hosts/pi4/configuration.nix index ae4d528..5964f98 100644 --- a/modules/hosts/pi4/configuration.nix +++ b/modules/hosts/pi4/configuration.nix @@ -1,5 +1,19 @@ { self, inputs, ... }: { + flake.nixosModules.pi4-install-sd = { config, pkgs, modulesPath, ... }: { + + imports = with self.nixosModules; [ + + (modulesPath + "/installer/sd-card/sd-image-aarch64.nix") + pi4-core + + ]; + + config = { + + }; + }; + flake.nixosModules.pi4-install-disko = { config, pkgs, ... }: { imports = with self.nixosModules; [ @@ -15,7 +29,6 @@ }; }; - flake.nixosModules.pi4 = { config, pkgs, ... }: { imports = with self.nixosModules; [ diff --git a/modules/hosts/pi4/default.nix b/modules/hosts/pi4/default.nix index 93aeab1..39d29de 100644 --- a/modules/hosts/pi4/default.nix +++ b/modules/hosts/pi4/default.nix @@ -1,7 +1,7 @@ { self, inputs, ... }: { perSystem = { ... }: { - packages.pi4-sd = self.nixosConfigurations.pi4-install.config.system.build.sdImage; + packages.pi4-sd = self.nixosConfigurations.pi4-install-sd.config.system.build.sdImage; }; flake.nixosConfigurations.pi4 = inputs.nixpkgs.lib.nixosSystem {