2024-03-06 05:47:59 +03:00
|
|
|
{ pkgs, inputs, const, ... }: let
|
|
|
|
homePath = "/data/data/com.termux.nix/files/home";
|
|
|
|
in {
|
2024-03-25 01:42:34 +03:00
|
|
|
# NOTE: Split into modules?
|
|
|
|
environment.packages = with pkgs; [
|
|
|
|
android-tools
|
|
|
|
binwalk
|
|
|
|
coreutils
|
|
|
|
curl
|
|
|
|
diffutils
|
|
|
|
ffmpeg
|
|
|
|
file
|
|
|
|
findutils
|
|
|
|
gawk
|
|
|
|
gcc
|
|
|
|
gdu
|
|
|
|
git
|
|
|
|
gnugrep
|
|
|
|
gnumake
|
|
|
|
gnused
|
|
|
|
gnutar
|
|
|
|
gzip
|
|
|
|
hostname
|
|
|
|
imagemagick
|
|
|
|
jq
|
|
|
|
lsof
|
|
|
|
man
|
|
|
|
neofetch
|
|
|
|
nmap
|
|
|
|
openssh
|
|
|
|
parallel
|
|
|
|
pv
|
2024-03-26 06:31:22 +03:00
|
|
|
ripgrep
|
2024-03-25 01:42:34 +03:00
|
|
|
rsync
|
|
|
|
sqlite
|
|
|
|
tmux
|
|
|
|
tree
|
|
|
|
utillinux
|
|
|
|
wget
|
|
|
|
xz
|
|
|
|
yt-dlp
|
|
|
|
zip unzip
|
|
|
|
];
|
|
|
|
|
2024-03-26 06:36:00 +03:00
|
|
|
time.timeZone = const.timeZone;
|
2024-03-26 06:31:22 +03:00
|
|
|
nix.extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
|
2024-03-09 01:15:42 +03:00
|
|
|
home-manager.config = {
|
|
|
|
home.stateVersion = const.droidStateVersion;
|
|
|
|
home.file = {
|
2024-03-26 05:15:47 +03:00
|
|
|
".dotfiles".source = inputs.self;
|
|
|
|
".ssh/config".source = ./common/ssh/config;
|
2024-03-26 05:48:53 +03:00
|
|
|
".termux/_font.ttf".source = pkgs.runCommandNoCC "font" {} ''
|
2024-03-26 05:15:47 +03:00
|
|
|
cp ${pkgs.nerdfonts.override { fonts = [ "Terminus" ]; }}/share/fonts/truetype/NerdFonts/TerminessNerdFontMono-Regular.ttf $out
|
|
|
|
'';
|
2024-03-09 01:15:42 +03:00
|
|
|
};
|
|
|
|
home.sessionVariables = {
|
2024-03-26 06:31:22 +03:00
|
|
|
BASH_PATH = ./common/bash;
|
|
|
|
EDITOR = "nvim";
|
|
|
|
MANPAGER = "nvim +Man!";
|
|
|
|
NIXPKGS_ALLOW_UNFREE = "1";
|
|
|
|
NIX_CURRENT_SYSTEM = "${pkgs.stdenv.system}";
|
|
|
|
TERM = "xterm-256color";
|
2024-03-09 01:15:42 +03:00
|
|
|
};
|
|
|
|
programs.bash = {
|
|
|
|
enable = true;
|
2024-03-26 05:48:53 +03:00
|
|
|
bashrcExtra = ''
|
|
|
|
source $BASH_PATH/Bashrc.sh
|
|
|
|
[[ -f ~/.termux/font.ttf ]] || {
|
|
|
|
cp ~/.termux/_font.ttf ~/.termux/font.ttf
|
|
|
|
_warn "Nerd font installed, please restart."
|
|
|
|
};
|
|
|
|
'';
|
2024-03-09 01:15:42 +03:00
|
|
|
};
|
|
|
|
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;
|
2024-03-25 01:10:28 +03:00
|
|
|
extraConfig = (import ./common/nvim/Init.nix { inputs = inputs; }).customRc;
|
2024-03-09 01:15:42 +03:00
|
|
|
};
|
|
|
|
};
|
2024-03-04 00:34:39 +03:00
|
|
|
}
|