From 3e71c337faaf633ae46d4499028caa43817fd4e7 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Thu, 1 Aug 2024 02:33:11 +0200 Subject: Add phone configuration --- flake.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 74cc584..85a27ff 100644 --- a/flake.nix +++ b/flake.nix @@ -28,10 +28,20 @@ url = "github:oxalica/rust-overlay"; inputs.nixpkgs.follows = "nixpkgs"; }; + nix-on-droid = { + url = "github:nix-community/nix-on-droid/release-24.05"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.home-manager.follows = "home-manager"; + }; }; outputs = - { flake-utils, ... }@inputs: + { + nixpkgs, + flake-utils, + nix-on-droid, + ... + }@inputs: flake-utils.lib.eachDefaultSystem ( system: let @@ -93,5 +103,18 @@ in builtins.mapAttrs generateNixosSystem nixosConfigs; + + nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration { + pkgs = import nixpkgs { system = "aarch64-linux"; }; + modules = [ + ./phone + ./share/system/common.nix + ]; + + extraSpecialArgs = { + inherit inputs; + flakeRoot = ./.; + }; + }; }; } -- cgit v1.3.1