- New options under
android-integration
, offer some of the tools familiar to Termux users:am
,termux-open
,termux-open-url
,termux-reload-settings
,termux-setup-storage
,termux-wake-lock
,termux-wake-unlock
andxdg-open
.
nixOnDroidConfigurations
pkgs
argument is now mandatory. Put simply, if one's using a flake config, they need to addnixpkgs
tooutputs = { self, nixpkgs, ... }:
if it was previously missing, then add apkgs = import nixpkgs { system = "aarch64-linux"; };
as an argument tonixOnDroidConfiguration
. If in doubt, refer to thetemplates
.config.arch
option has been dropped. Consider usingpkgs.system
instead.
-
New options
networking.hosts
,networking.hostFiles
andnetworking.extraHosts
for/etc/hosts
configuration. -
Terminal colorscheme can now be configured with
terminal.colors
option. Previously present file will be backed up tocolors.properties.bak
.
- Add option
environment.extraOutputsToInstall
.
- Fix usage of
extraSpecialArgs
: All values were previously set in_module.args
instead of passing them asspecialArgs
intoevalModules
. This enables usage ofspecialArgs
to use inimports
in module defintions. - In an effort to reduce the number of arguments to
lib.nixOnDroidConfiguration
function in flake configurations,system
is now inferred frompkgs.system
andconfig
andextraModules
are now combined intomodules
- The option
system.stateVersion
does not have a default value anymore. Previously, its default was"19.09"
the release the state version was introduced.
- Terminal font now should be specified using
terminal.font
option, set it to any file containing a font to apply it. An in-appStyling
option will no longer work. Previously present file will be backed up to~/.termux/font.ttf.bak
. - Add option
environment.motd
to edit the startup message that is printed in every shell
/proc/uptime
is now faked with a stub that allows unpatchedps
to work.- Refactored project for flakes usage (still supporting non-flake setups on device, but bootstrap zip ball creation and running tests via fakedroid requires flake setup)
- Add support for
nix profile
managed profiles - Add possibilty to bootstrap Nix-on-Droid with flakes via prompt on initial boot
- For flake setups, the output
nixOnDroidConfigurations.default
will be used whennix-on-droid switch --flake path/to/flake
is called without attribute name - Add html and man pages with all available options, see https://t184256.github.io/nix-on-droid/
and
nix build github:t184256/nix-on-droid#manPages
/proc/stat
is now faked with a stub that allows unpatchedhtop
to work.--sysvipc
proot
extension has been enabled to facilitate shared memory interprocess communication.
- The
nix.package
can be used to set the system-wide nix package.
- The
system.workaround.make-posix-spawn.enable
has been removed. - i686 support has been removed.
- The
/etc/nix/nix.conf
file is now fully configurable with the new optionsnix.*
.
system.workaround.make-posix-spawn.enable = true;
is no longer needed is deprecated.- i686 support will be deprecated in the next release unless somebody steps up to test it.
These changes are only active
if the system.stateVersion
option is set to "20.09"
or later.
home-manager.useUserPackages
now defaults totrue
. The developers are not aware of any adverse effects so far.
- Pre-module-system installations are not supported anymore with this release.
If you are not on
release-19.09
yet, either or attempt an upgrade torelease-19.09
and follow the instructions, or backup and reinstall (preferred).
- A
flake.nix
file was added.
- If
make
fails on your device withFunction not implemented
, report that in #91 and consider either remote building or settingsystem.workaround.make-posix-spawn.enable = true;