nix/module/NixOnDroid.nix

72 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-04 23:11:23 +03:00
{ pkgs, inputs, const, ... }: {
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
neovim
nmap
openssh
parallel
pv
ripgrep
sqlite
tmux
tree
utillinux
wget
xz
yt-dlp
zip unzip
];
2024-03-04 23:11:23 +03:00
home-manager.config = {
home.stateVersion = const.droidStateVersion;
home.file = {
2024-03-06 05:35:43 +03:00
".nixos".source = inputs.self;
2024-03-06 01:56:27 +03:00
".bash".source = ./common/bash;
".ssh/config".source = ./common/ssh/Config;
};
home.sessionVariables = {
BASH_MODULE_PATH = "$HOME/.bash/module";
BASH_PATH = "$HOME/.bash";
2024-03-04 23:11:23 +03:00
};
programs.bash = {
2024-03-06 01:56:27 +03:00
enable = true;
bashrcExtra = "source ~/.bash/Bashrc.sh";
2024-03-04 23:11:23 +03:00
};
2024-03-06 05:12:00 +03:00
programs.tmux = {
enable = true;
extraConfig = builtins.readFile ./common/tmux/tmux.conf;
};
2024-03-06 05:35:43 +03:00
programs.git = {
enable = true;
extraConfig = {
credential.helper = "store";
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
rebase.autoStash = true;
};
};
2024-03-04 23:11:23 +03:00
};
}