From 3d30d4fe6838c9bc859938dff98c42d34bf0fb62 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Tue, 15 Jun 2021 20:26:51 -0400 Subject: [PATCH] Add Android host via Nix On Droid --- README.org | 21 ++++++++++++++++++++- flake.nix | 4 +++- hosts/android/.git-keep | 0 hosts/android/nix-on-droid.nix | 12 ++++++++++++ 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 hosts/android/.git-keep create mode 100644 hosts/android/nix-on-droid.nix diff --git a/README.org b/README.org index aacaaab..76b588c 100644 --- a/README.org +++ b/README.org @@ -404,7 +404,26 @@ This is my Samsung Galaxy S10+[fn:14] running Nix On Droid[fn:10] with the exper #+NAME: host-android #+BEGIN_SRC nix -# TODO: Android. +android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid { + config = ./hosts/android/nix-on-droid.nix +}).activationPackage; +#+END_SRC + +Build the activation package with ~nix build .#android --impure~, and activate it with =result/activate=. + +#+BEGIN_SRC nix :noweb yes :tangle hosts/android/nix-on-droid.nix +# <> +{ pkgs, ... }: + +{ + environment.packages = [ + pkgs.git + pkgs.vim + pkgs.pass + pkgs.gnupg + pkgs.openssh + ]; +} #+END_SRC ** TODO Homecloud diff --git a/flake.nix b/flake.nix index aaad9aa..d02373a 100644 --- a/flake.nix +++ b/flake.nix @@ -64,7 +64,9 @@ } ]; }; - # TODO: Android. + android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid { + config = ./hosts/android/nix-on-droid.nix + }).activationPackage; # TODO: Homecloud # TODO: Raspberry # TODO: Zero-One diff --git a/hosts/android/.git-keep b/hosts/android/.git-keep new file mode 100644 index 0000000..e69de29 diff --git a/hosts/android/nix-on-droid.nix b/hosts/android/nix-on-droid.nix new file mode 100644 index 0000000..5c58623 --- /dev/null +++ b/hosts/android/nix-on-droid.nix @@ -0,0 +1,12 @@ +# This file is controlled by /etc/dotfiles/README.org +{ pkgs, ... }: + +{ + environment.packages = [ + pkgs.git + pkgs.vim + pkgs.pass + pkgs.gnupg + pkgs.openssh + ]; +}