Browse Source

Add Android host via Nix On Droid

main
parent
commit
3d30d4fe68
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 21
      README.org
  2. 4
      flake.nix
  3. 0
      hosts/android/.git-keep
  4. 12
      hosts/android/nix-on-droid.nix

21
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
# <<file-warning>>
{ pkgs, ... }:
{
environment.packages = [
pkgs.git
pkgs.vim
pkgs.pass
pkgs.gnupg
pkgs.openssh
];
}
#+END_SRC
** TODO Homecloud

4
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

0
hosts/android/.git-keep

12
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
];
}
Loading…
Cancel
Save