Browse Source

Update android configuration

main
parent
commit
40e9f3c69b
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 10
      README.org
  2. 8
      flake.nix

10
README.org

@ -569,12 +569,16 @@ This is my [[https://samsung.com/us/mobile/galaxy-s10/buy/][Samsung Galaxy S10+]
#+NAME: host-android
#+BEGIN_SRC nix
android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid {
android = {
device = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
config = ./hosts/android/nix-on-droid.nix;
}).activationPackage;
system = "aarch64-linux";
specialArgs = { inherit inputs; };
};
};
#+END_SRC
Build the activation package with ~nix build .#android --impure~, and activate it with =result/activate=.
Build and activate the configuration with ~nix-on-droid switch --flake .#android~. Currently this cannot be built with a pure flake because of hardcoded store paths for =proot=. Every evaluation will be executed with the =--impure= flag.
#+BEGIN_SRC nix :noweb yes :tangle hosts/android/nix-on-droid.nix
# <<file-warning>>

8
flake.nix

@ -40,9 +40,13 @@
}
];
};
android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid {
android = {
device = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
config = ./hosts/android/nix-on-droid.nix;
}).activationPackage;
system = "aarch64-linux";
specialArgs = { inherit inputs; };
};
};
};
};
}
Loading…
Cancel
Save