NixOnDroid : Add Android config.

This commit is contained in:
Dmitry Voronin 2024-03-01 18:39:40 +03:00
parent 35a604609a
commit 474de1bbad
3 changed files with 51 additions and 2 deletions

View file

@ -7,6 +7,12 @@
flake = false;
};
# Android.
nix-on-droid = {
url = "github:t184256/nix-on-droid/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
# Nvim plugins.
nvimAlign = {
url = "git+https://git.voronind.com/mirror/mini.align.git";
@ -90,7 +96,7 @@
};
};
outputs = { self, nixpkgs, dotfiles, ... } @inputs: {
outputs = { self, nixpkgs, dotfiles, nix-on-droid, ... } @inputs: {
# Constant values.
nixosModules.const = {
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.
@ -239,5 +245,10 @@
./user/Voronind.nix
];
};
# Android.
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
modules = [ ./module/NixOnDroid.nix ];
};
};
}

View file

@ -0,0 +1,38 @@
{ pkgs, ... }: {
environment.packages = with pkgs; [
android-tools
binwalk
coreutils
curl
diffutils
ffmpeg
file
findutils
gcc
git
gnugrep
gnumake
gnused
gnutar
gzip
hostname
imagemagick
jq
lsof
ltex-ls
man
ncdu
nmap
openssh
parallel
pv
ripgrep
sqlite
tree
utillinux
wget
xz
yt-dlp
zip unzip
];
}

View file

@ -15,7 +15,7 @@
expat
fontconfig
freetype
fuse3
fuse
gdk-pixbuf
glib
gtk3