init: public
This commit is contained in:
88
modules/cmd/misc/default.nix
Normal file
88
modules/cmd/misc/default.nix
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userfullname,
|
||||
useremail,
|
||||
...
|
||||
}:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
default = true;
|
||||
optionName = "misc command line tools";
|
||||
optionPath = [
|
||||
"cmd"
|
||||
"misc"
|
||||
];
|
||||
config' = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
git
|
||||
|
||||
file
|
||||
gnused
|
||||
gnutar
|
||||
|
||||
zip
|
||||
unzip
|
||||
xz
|
||||
p7zip
|
||||
rar
|
||||
unrar
|
||||
|
||||
pciutils
|
||||
usbutils
|
||||
|
||||
lsof
|
||||
|
||||
nmap
|
||||
traceroute
|
||||
tcping-go
|
||||
dnsutils
|
||||
|
||||
killall
|
||||
];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
|
||||
my.home = {
|
||||
programs.home-manager.enable = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "${userfullname}";
|
||||
userEmail = "${useremail}";
|
||||
extraConfig = {
|
||||
pull.rebase = true;
|
||||
push.autoSetupRemote = true;
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
lsd
|
||||
fd
|
||||
neofetch
|
||||
fzf
|
||||
bat
|
||||
ripgrep
|
||||
|
||||
aria2
|
||||
socat
|
||||
|
||||
nix-output-monitor
|
||||
|
||||
tmux
|
||||
|
||||
trash-cli
|
||||
|
||||
cht-sh
|
||||
|
||||
dooit
|
||||
|
||||
# translate-shell
|
||||
];
|
||||
xdg.configFile."tmux/tmux.conf".source = ./tmux.conf;
|
||||
};
|
||||
};
|
||||
}
|
||||
9
modules/cmd/misc/tmux.conf
Normal file
9
modules/cmd/misc/tmux.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
set-option -g mouse on
|
||||
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
|
||||
set -g @plugin "janoamaral/tokyo-night-tmux#legacy"
|
||||
|
||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||
run '~/.config/tmux/plugins/tpm/tpm'
|
||||
Reference in New Issue
Block a user