2024-05-26 01:12:01 -04:00
|
|
|
{ pkgs, config }:
|
|
|
|
let
|
2024-05-25 22:55:59 -04:00
|
|
|
cpkg = import ../customPackages { inherit pkgs; };
|
2024-05-26 01:12:01 -04:00
|
|
|
in
|
|
|
|
{
|
2024-05-25 22:55:59 -04:00
|
|
|
dev = with pkgs;[
|
2024-07-05 14:57:05 -04:00
|
|
|
cmake
|
2024-05-25 22:55:59 -04:00
|
|
|
nodePackages_latest.typescript-language-server
|
|
|
|
cargo
|
|
|
|
lua
|
|
|
|
go
|
|
|
|
eslint_d
|
|
|
|
typescript
|
|
|
|
php
|
|
|
|
clang
|
|
|
|
gnumake
|
|
|
|
gradle
|
|
|
|
lazygit
|
|
|
|
linuxHeaders
|
|
|
|
nodePackages.nodemon
|
|
|
|
nodePackages.ts-node
|
|
|
|
nodePackages.pnpm
|
2024-06-02 16:12:15 -04:00
|
|
|
corepack_22
|
2024-05-25 22:55:59 -04:00
|
|
|
nodePackages.prisma
|
|
|
|
prisma-engines
|
|
|
|
nodePackages.live-server
|
|
|
|
gh
|
|
|
|
glib
|
|
|
|
glibc
|
|
|
|
(python39.withPackages (ps: with ps;[
|
|
|
|
evdev
|
|
|
|
setuptools
|
|
|
|
xlib
|
|
|
|
]))
|
2024-05-27 14:09:56 -04:00
|
|
|
nodejs_22
|
2024-05-25 22:55:59 -04:00
|
|
|
];
|
|
|
|
gui = with pkgs;[
|
2024-07-29 14:12:29 -04:00
|
|
|
python312Packages.openai-whisper
|
2024-07-12 14:36:02 -04:00
|
|
|
cinny-desktop
|
2024-07-09 21:59:59 -04:00
|
|
|
element-desktop
|
|
|
|
protonvpn-gui
|
2024-07-08 22:02:13 -04:00
|
|
|
xclicker
|
2024-07-05 13:07:09 -04:00
|
|
|
polychromatic
|
2024-07-08 18:08:13 -04:00
|
|
|
jellyfin-media-player
|
2024-06-21 18:39:45 -04:00
|
|
|
arrpc
|
2024-06-13 12:02:10 -04:00
|
|
|
filezilla
|
2024-06-10 23:43:19 -04:00
|
|
|
virt-manager
|
|
|
|
qemu_full
|
2024-06-08 17:51:18 -04:00
|
|
|
shotcut
|
2024-06-08 16:58:04 -04:00
|
|
|
pinta
|
|
|
|
gimp
|
2024-06-07 01:15:22 -04:00
|
|
|
inkscape
|
2024-06-05 10:21:08 -04:00
|
|
|
#OCR ENGINE
|
|
|
|
tesseract4
|
2024-07-05 11:14:34 -04:00
|
|
|
# discord = cpkg.discord.override {
|
|
|
|
# withOpenASAR = true;
|
|
|
|
# withVencord = true;
|
|
|
|
# };
|
|
|
|
(pkgs.discord.override {
|
2024-07-05 14:57:05 -04:00
|
|
|
vencord = cpkg.vencord;
|
2024-07-05 11:14:34 -04:00
|
|
|
})
|
|
|
|
(pkgs.vesktop.override {
|
2024-07-05 14:57:05 -04:00
|
|
|
vencord = cpkg.vencord;
|
2024-07-05 11:14:34 -04:00
|
|
|
})
|
2024-05-25 22:55:59 -04:00
|
|
|
xsel
|
|
|
|
spotify
|
|
|
|
pulseaudioFull
|
|
|
|
pavucontrol
|
2024-06-20 20:03:04 -04:00
|
|
|
# jetbrains.pycharm-community
|
2024-05-25 22:55:59 -04:00
|
|
|
jetbrains.idea-community-bin
|
|
|
|
google-chrome
|
|
|
|
bitwarden
|
|
|
|
nerdfonts
|
|
|
|
vscodium
|
|
|
|
kitty
|
|
|
|
rofi
|
|
|
|
thunderbird
|
|
|
|
vlc
|
|
|
|
jellyfin-web
|
|
|
|
obs-studio
|
|
|
|
tokyo-night-gtk
|
|
|
|
ksshaskpass
|
|
|
|
libsForQt5.kinit
|
|
|
|
];
|
|
|
|
general = with pkgs; [
|
2024-07-13 23:40:34 -04:00
|
|
|
p7zip
|
2024-07-13 22:55:52 -04:00
|
|
|
dig
|
2024-07-05 14:57:05 -04:00
|
|
|
bat
|
2024-07-05 11:14:34 -04:00
|
|
|
usbutils
|
2024-06-13 12:02:10 -04:00
|
|
|
tree
|
2024-06-08 16:58:04 -04:00
|
|
|
ffmpeg
|
|
|
|
yt-dlp
|
|
|
|
neofetch
|
2024-05-26 01:12:01 -04:00
|
|
|
sops
|
2024-06-02 20:52:24 -04:00
|
|
|
hyfetch
|
2024-05-25 22:55:59 -04:00
|
|
|
fzf
|
|
|
|
zsh-powerlevel10k
|
|
|
|
zsh-syntax-highlighting
|
|
|
|
jq
|
|
|
|
unzip
|
|
|
|
btop
|
|
|
|
];
|
|
|
|
gaming = with pkgs; [
|
|
|
|
(prismlauncher.override {
|
|
|
|
jdks = [
|
|
|
|
jdk8
|
|
|
|
jdk17
|
|
|
|
jdk19
|
|
|
|
];
|
|
|
|
})
|
|
|
|
protontricks
|
|
|
|
lutris
|
|
|
|
];
|
|
|
|
scripts = [
|
2024-05-27 22:05:38 -04:00
|
|
|
(pkgs.writeShellScriptBin "paste" ''
|
|
|
|
command -v xsel > /dev/null
|
|
|
|
if [[ $? -eq 0 ]]; then
|
2024-05-27 22:09:59 -04:00
|
|
|
xsel -ob && exit 0
|
2024-05-27 22:05:38 -04:00
|
|
|
fi
|
|
|
|
command -v wslclip > /dev/null
|
|
|
|
if [[ $? -eq 0 ]]; then
|
2024-05-27 22:09:59 -04:00
|
|
|
wslclip -g && exit 0
|
2024-05-27 22:05:38 -04:00
|
|
|
fi
|
|
|
|
'')
|
2024-06-19 02:37:19 -04:00
|
|
|
(pkgs.writeShellScriptBin "http2ssh" ''
|
2024-06-19 02:42:24 -04:00
|
|
|
set -eo pipefail
|
2024-06-19 02:37:19 -04:00
|
|
|
|
|
|
|
if [[ -z $1 ]]; then
|
|
|
|
echo "You need to provide a remote name";
|
|
|
|
echo "Avilable remotes";
|
|
|
|
git remote -v;
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
URL=''$(git remote get-url $1);
|
|
|
|
URL=''${URL/https:\/\//git@};
|
|
|
|
URL=''${URL/\//:};
|
2024-06-19 02:44:24 -04:00
|
|
|
git remote set-url $1 $URL;
|
2024-06-19 02:37:19 -04:00
|
|
|
''
|
|
|
|
)
|
2024-05-27 22:05:38 -04:00
|
|
|
(pkgs.writeShellScriptBin "copy" ''
|
|
|
|
command -v xsel > /dev/null
|
2024-05-27 22:09:59 -04:00
|
|
|
if [[ $? -eq 0 ]]; then
|
|
|
|
xsel -ib $@ && exit 0
|
2024-05-27 22:05:38 -04:00
|
|
|
fi
|
|
|
|
command -v wslclip > /dev/null
|
2024-05-27 22:09:59 -04:00
|
|
|
if [[ $? -eq 0 ]]; then
|
|
|
|
wslclip $@ && exit 0
|
2024-05-27 22:05:38 -04:00
|
|
|
fi
|
2024-06-05 10:26:24 -04:00
|
|
|
|
2024-05-27 22:05:38 -04:00
|
|
|
'')
|
2024-05-25 22:55:59 -04:00
|
|
|
(pkgs.writeShellScriptBin "git_fetchAll" ''
|
|
|
|
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "''${remote#origin/}" "$remote"; done
|
|
|
|
git fetch --all
|
|
|
|
git pull --all
|
|
|
|
'')
|
|
|
|
(pkgs.writeShellScriptBin "install_eslint" ''
|
|
|
|
set -x
|
|
|
|
cp /home/${config.home.username}/.config/.eslintrc.json .
|
|
|
|
pkgs=("@stylistic/eslint-plugin" "@typescript-eslint/eslint-plugin")
|
|
|
|
if [[ -z $1 ]]; then
|
|
|
|
echo please specify npm, pnpm, or yarn
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
for i in "''${pkgs[@]}"; do
|
|
|
|
`$1 i -D $i`
|
|
|
|
done
|
|
|
|
'')
|
|
|
|
(pkgs.writeShellScriptBin "math" ''
|
|
|
|
set -e
|
|
|
|
python3 -c "print($*)"
|
|
|
|
'')
|
2024-06-05 10:21:08 -04:00
|
|
|
(pkgs.writeShellScriptBin "ocr" ''
|
2024-06-05 10:26:24 -04:00
|
|
|
set -euo pipefail
|
|
|
|
TEMP=$(mktemp)
|
|
|
|
flameshot gui -s -r > $TEMP
|
2024-06-05 10:45:04 -04:00
|
|
|
(tesseract $TEMP --oem 1 -l eng | copy )|| copy "OCR RETUNRED NON-ZERO"
|
2024-06-05 10:21:08 -04:00
|
|
|
'')
|
2024-05-25 22:55:59 -04:00
|
|
|
];
|
2024-05-27 21:39:29 -04:00
|
|
|
wsl = with pkgs;[
|
2024-05-27 22:05:38 -04:00
|
|
|
wslu
|
2024-05-27 21:39:29 -04:00
|
|
|
];
|
2024-05-25 22:55:59 -04:00
|
|
|
}
|