From 54f1a49d200789c4ce7ba18ece460d8388d8fddc Mon Sep 17 00:00:00 2001 From: Christian Simon Date: Wed, 6 Nov 2024 15:54:05 +0000 Subject: [PATCH] Remove install image packages and expose hardware config --- flake.nix | 41 ++++------------------------------------- 1 file changed, 4 insertions(+), 37 deletions(-) diff --git a/flake.nix b/flake.nix index a02f42c..6733187 100644 --- a/flake.nix +++ b/flake.nix @@ -138,43 +138,6 @@ }; packages = { - # Install images should only come with the minimal set of config/packages to boot and then the rest is done using nixos-rebuild - install-images = - let - baseInstallModules = [ - ./modules/ssh-pub-keys.nix - ({ config, ... }: { - nix.registry.nixpkgs.flake = inputs.nixpkgs; - services.openssh.enable = true; - users.extraUsers.root.openssh.authorizedKeys.keys = config.swine.ssh.pubkeys.simonswine; - system.stateVersion = "24.05"; - }) - ]; - in - { - # tested for raspberry pi 4 - generic = inputs.nixos-generators.nixosGenerate { - inherit system; - modules = baseInstallModules; - specialArgs = { - pkgs = pkgs; - }; - format = "sd-aarch64"; - }; - - orangepi5plus = inputs.nixos-generators.nixosGenerate { - inherit system; - modules = baseInstallModules ++ [ - ./install-image/orangepi5plus.nix - ./hardware/orangepi5plus/default.nix - ]; - specialArgs = { - pkgs = pkgs; - }; - format = "sd-aarch64"; - }; - }; - hcloud-kexec = inputs.nixos-generators.nixosGenerate { system = system; modules = [ @@ -266,6 +229,10 @@ ) ); + hardware = { + orangepi5plus = ./hardware/orangepi5plus/default.nix; + }; + installImages = { aarch64-linux = self.nixosConfigurations.install-image-aarch64-linux.config.system.build.sdImage; orangepi5plus = self.nixosConfigurations.install-image-orangepi5plus.config.system.build.sdImage;