blob: d89b2438ddb7993a39adf413ed467d3d263d0c73 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
{ config, lib, pkgs, inputs, user, hostname, secrets, ... }:
let
dotfiles = ../dotfiles;
in
{
home.username = "${user}";
home.homeDirectory = "/home/${user}";
home.packages = with pkgs; [
scrot
qemu
redshift
custom.xwinwrapr
discord
mpv
sxiv
dwm
st
dmenu
unclutter
clipmenu
dunst
sxhkd
feh
custom.smart-wallpaper
custom.dwmbar
numlockx
surf
pavucontrol
light
polkit_gnome
progress
qbittorrent
xorg.xev
statix
custom.anime-downloader
custom.adl
custom.trackma
];
programs = {
git = {
enable = true;
userName = "Baitinq";
userEmail = "manuelpalenzuelamerino@gmail.com";
};
firefox = {
enable = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
darkreader
https-everywhere
bypass-paywalls-clean
];
profiles.default = {
id = 0;
name = "Default";
isDefault = true;
settings = {
"general.autoScroll" = true;
};
};
};
obs-studio = { enable = true; };
zsh = {
enable = true;
zplug = {
enable = true;
plugins = [
{
name = "zsh-users/zsh-autosuggestions";
} # Simple plugin installation
{
name = "zsh-users/zsh-syntax-highlighting";
} # Simple plugin installation
{ name = "chrissicool/zsh-256color"; } # Simple plugin installation
{
name = "fsegouin/oh-my-zsh-agnoster-mod-theme";
tags = [ "as:theme" "depth:1" ];
} # Installations with additional options. For the list of options, please refer to Zplug README.
];
};
shellAliases = {
ls = "ls --color";
l = "ls -l";
ll = "ls -la";
weather = "(){ curl -s v2.wttr.in/$1 }";
vim = "nvim";
q = "exit";
c = "clear";
extract = ''
() {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.tar.xz) tar Jxvf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip -d `echo $1 | sed 's/\(.*\)\.zip/\1/'` $1;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "don't know how to extract '$1'" ;;
esac
else
echo "'$1' is not a valid file!"
fi
}'';
};
initExtra = ''
#when going up go up only beggining of curr word history
bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward
#ctrl + arrow forward/backward word
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
#alt + arrow forward/backward word
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
#ctrl + delete delete whole word
bindkey '^H' backward-kill-word
#alt + delete delete whole word
bindkey "\e\x7f" backward-kill-word
'';
};
vscode = {
enable = true;
mutableExtensionsDir = false; #needed for bug with installing extensions
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
esbenp.prettier-vscode
];
};
};
home.file = {
".bash_profile".source = dotfiles + "/.bash_profile";
".xinitrc".source = dotfiles + "/.xinitrc";
".Xresources".source = dotfiles + "//.Xresources/";
".bashrc".source = dotfiles + "/.bashrc";
".config/zathura/zathurarc".source = dotfiles + "/zathurarc";
".config/sxhkd/".source = dotfiles + "/sxhkd";
".config/dunst/dunstrc".source = dotfiles + "/dunstrc";
".config/dwmbar".source = dotfiles + "/dwmbar/";
".scripts/".source = dotfiles + "/scripts/";
};
home.file = {
"./Images/Wallpapers".source = pkgs.fetchFromGitHub {
owner = "Baitinq";
repo = "Wallpapers";
rev = "291f9a4cf78a6ad862da151139ea026ea72968e5";
sha256 = "sha256-YKpIno5QSJM/GGp5DwQeuhKmTU5S96+IhLr0O0V8PDI=";
};
};
}
|