New modules for Home Manager
This commit is contained in:
parent
07fb22e47e
commit
d7faff3901
6 changed files with 133 additions and 0 deletions
9
modules/home/default.nix
Normal file
9
modules/home/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./direnv.nix
|
||||||
|
./git.nix
|
||||||
|
./kitty.nix
|
||||||
|
./packages.nix
|
||||||
|
./starship.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
8
modules/home/direnv.nix
Normal file
8
modules/home/direnv.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
7
modules/home/git.nix
Normal file
7
modules/home/git.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
delta.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
37
modules/home/kitty.nix
Normal file
37
modules/home/kitty.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.kitty = {
|
||||||
|
|
||||||
|
enable = true;
|
||||||
|
font.name = "Iosevka";
|
||||||
|
|
||||||
|
keybindings = {
|
||||||
|
"alt+c" = "copy_to_clipboard";
|
||||||
|
"alt+v" = "paste_from_clipboard";
|
||||||
|
"kitty_mod+enter" = "new_window_with_cwd";
|
||||||
|
"kitty_mod+left" = "previous_window";
|
||||||
|
"kitty_mod+right" = "next_window";
|
||||||
|
"kitty_mod+shift+left" = "next_tab";
|
||||||
|
"kitty_mod+shift+right" = "previous_tab";
|
||||||
|
"kitty_mod+shift+r" = "new_window ranger";
|
||||||
|
"kitty_mod+shift+t" = "set_tab_title";
|
||||||
|
"kitty_mod+q" = "close_tab";
|
||||||
|
"kitty_mod+t" = "new_tab";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
# kitty_mod = "ctrl+shift";
|
||||||
|
kitty_mod = "alt";
|
||||||
|
scrollback_lines = 10000;
|
||||||
|
enable_audio_bell = false;
|
||||||
|
update_check_interval = 0;
|
||||||
|
copy_on_select = true;
|
||||||
|
draw_minimal_borders = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
shellIntegration.enableZshIntegration = true;
|
||||||
|
|
||||||
|
theme = "Catppuccin-Macchiato";
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
59
modules/home/packages.nix
Normal file
59
modules/home/packages.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
# Packages that should be installed to the user profile.
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
|
||||||
|
superfile # terminal file manager
|
||||||
|
|
||||||
|
# archives
|
||||||
|
peazip
|
||||||
|
|
||||||
|
# utils
|
||||||
|
ripgrep # recursively searches directories for a regex pattern
|
||||||
|
jq # A lightweight and flexible command-line JSON processor
|
||||||
|
eza # A modern replacement for ‘ls’
|
||||||
|
fzf # A command-line fuzzy finder
|
||||||
|
|
||||||
|
# networking tools
|
||||||
|
iperf3
|
||||||
|
dnsutils # `dig` + `nslookup`
|
||||||
|
ldns # replacement of `dig`, it provide the command `drill`
|
||||||
|
aria2 # A lightweight multi-protocol & multi-source command-line download utility
|
||||||
|
nmap # A utility for network discovery and security auditing
|
||||||
|
ipcalc # it is a calculator for the IPv4/v6 addresses
|
||||||
|
|
||||||
|
# misc
|
||||||
|
file
|
||||||
|
which
|
||||||
|
tree
|
||||||
|
gnused
|
||||||
|
gnutar
|
||||||
|
gawk
|
||||||
|
zstd
|
||||||
|
gnupg
|
||||||
|
|
||||||
|
# nix related
|
||||||
|
#
|
||||||
|
# it provides the command `nom` works just like `nix`
|
||||||
|
# with more details log output
|
||||||
|
nix-output-monitor
|
||||||
|
|
||||||
|
btop # replacement of htop/nmon
|
||||||
|
iotop # io monitoring
|
||||||
|
iftop # network monitoring
|
||||||
|
|
||||||
|
# system call monitoring
|
||||||
|
strace # system call monitoring
|
||||||
|
ltrace # library call monitoring
|
||||||
|
lsof # list open files
|
||||||
|
|
||||||
|
# system tools
|
||||||
|
sysstat
|
||||||
|
lm_sensors # for `sensors` command
|
||||||
|
ethtool
|
||||||
|
pciutils # lspci
|
||||||
|
usbutils # lsusb
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
||||||
13
modules/home/starship.nix
Normal file
13
modules/home/starship.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
# custom settings
|
||||||
|
settings = {
|
||||||
|
add_newline = false;
|
||||||
|
aws.disabled = true;
|
||||||
|
gcloud.disabled = true;
|
||||||
|
line_break.disabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue