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 + ]; +}