nix/module/NixOnDroid.nix

80 lines
1.4 KiB
Nix
Raw Normal View History

2024-03-06 05:47:59 +03:00
{ pkgs, inputs, const, ... }: let
homePath = "/data/data/com.termux.nix/files/home";
in {
home-manager.config = {
home.stateVersion = const.droidStateVersion;
home.file = {
".dotfiles".source = inputs.self;
".bash".source = ./common/bash;
".ssh/config".source = ./common/ssh/config;
};
home.sessionVariables = {
BASH_PATH = "${homePath}/.bash";
EDITOR = "nvim";
MANPAGER = "nvim +Man!";
NIX_CURRENT_SYSTEM = "${pkgs.stdenv.system}";
TERM = "xterm-256color";
};
programs.bash = {
enable = true;
bashrcExtra = "source ${homePath}/.bash/Bashrc.sh";
};
programs.tmux = {
enable = true;
extraConfig = builtins.readFile ./common/tmux/tmux.conf;
};
programs.git = {
enable = true;
extraConfig = {
credential.helper = "store";
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
rebase.autoStash = true;
};
};
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
};
};
environment.packages = with pkgs; [
android-tools
binwalk
coreutils
curl
diffutils
ffmpeg
file
findutils
2024-03-15 00:11:57 +03:00
gdu
git
gnugrep
gnumake
gnused
gnutar
gzip
hostname
imagemagick
jq
lsof
man
2024-03-15 21:16:16 +03:00
neofetch
nmap
openssh
parallel
pv
2024-03-08 02:28:09 +03:00
rsync
sqlite
tmux
tree
utillinux
wget
xz
yt-dlp
zip unzip
];
}