From 3fa96fad06bf148bc9b727d6f65d294cb9a26adb Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 15 Jun 2022 15:20:07 -0700 Subject: [PATCH] add a `pinephone` target. post-installation you can use `nixos-rebuild --flake "./#pinephone" switch` --- flake.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index ed825b5..96482fd 100644 --- a/flake.nix +++ b/flake.nix @@ -10,8 +10,8 @@ home-manager.url = "github:nix-community/home-manager/release-22.05"; }; - outputs = { self, nixpkgs, mobile-nixos, home-manager }: { - pinephone-img = (nixpkgs.lib.nixosSystem { + outputs = { self, nixpkgs, mobile-nixos, home-manager }: rec { + nixosConfigurations.pinephone = (nixpkgs.lib.nixosSystem { system = "aarch64-linux"; specialArgs = { inherit home-manager; }; modules = [ @@ -20,6 +20,7 @@ }) ./modules/default.nix ]; - }).config.mobile.outputs.u-boot.disk-image; + }); + pinephone-img = nixosConfigurations.pinephone.config.mobile.outputs.u-boot.disk-image; }; }