mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 13:22:28 +00:00
nix: factor out pkgs to packages.nix
This commit is contained in:
@@ -6,127 +6,7 @@
|
|||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "vim";
|
EDITOR = "vim";
|
||||||
};
|
};
|
||||||
packages = with pkgs; [
|
packages = import ./packages.nix { inherit pkgs; };
|
||||||
asciinema
|
|
||||||
audio-recorder
|
|
||||||
bandwhich
|
|
||||||
bat
|
|
||||||
bind
|
|
||||||
clipmenu
|
|
||||||
colordiff
|
|
||||||
curl
|
|
||||||
deluge
|
|
||||||
direnv
|
|
||||||
docker-compose
|
|
||||||
exa
|
|
||||||
fd
|
|
||||||
fzf
|
|
||||||
gimp
|
|
||||||
git
|
|
||||||
github-cli
|
|
||||||
glibcLocales
|
|
||||||
gnumake
|
|
||||||
go
|
|
||||||
go-jira
|
|
||||||
google-cloud-sdk
|
|
||||||
gopass
|
|
||||||
gradle
|
|
||||||
groovy
|
|
||||||
hadolint
|
|
||||||
nodejs-12_x
|
|
||||||
htop
|
|
||||||
imagemagick
|
|
||||||
jdk8
|
|
||||||
jq
|
|
||||||
libreoffice
|
|
||||||
maven
|
|
||||||
nmap
|
|
||||||
openvpn
|
|
||||||
packer
|
|
||||||
pfetch
|
|
||||||
pinentry-curses
|
|
||||||
postman
|
|
||||||
python38
|
|
||||||
ripgrep
|
|
||||||
rtv
|
|
||||||
shellcheck
|
|
||||||
shfmt
|
|
||||||
spotify
|
|
||||||
starship
|
|
||||||
terraform-ls
|
|
||||||
terraform_0_14
|
|
||||||
tflint
|
|
||||||
tfsec
|
|
||||||
tmux
|
|
||||||
tree
|
|
||||||
unzip
|
|
||||||
vlc
|
|
||||||
vscodium
|
|
||||||
xclip
|
|
||||||
xdg_utils
|
|
||||||
youtube-dl
|
|
||||||
zathura
|
|
||||||
zip
|
|
||||||
|
|
||||||
# encryption
|
|
||||||
cryptsetup
|
|
||||||
|
|
||||||
# browser
|
|
||||||
brave
|
|
||||||
firefox
|
|
||||||
|
|
||||||
# Docker
|
|
||||||
docker
|
|
||||||
|
|
||||||
# k8s
|
|
||||||
kubectl
|
|
||||||
kubernetes-helm
|
|
||||||
|
|
||||||
# nix
|
|
||||||
nixpkgs-fmt
|
|
||||||
rnix-lsp
|
|
||||||
|
|
||||||
# games
|
|
||||||
steam
|
|
||||||
minecraft
|
|
||||||
yuzu
|
|
||||||
|
|
||||||
# communication
|
|
||||||
discord
|
|
||||||
element-desktop
|
|
||||||
signal-desktop
|
|
||||||
slack
|
|
||||||
|
|
||||||
## aws
|
|
||||||
awscli2
|
|
||||||
ssm-session-manager-plugin
|
|
||||||
|
|
||||||
# python
|
|
||||||
python38Packages.ipython
|
|
||||||
python38Packages.pip
|
|
||||||
python38Packages.poetry
|
|
||||||
python38Packages.setuptools
|
|
||||||
python38Packages.virtualenv
|
|
||||||
black
|
|
||||||
|
|
||||||
# fonts
|
|
||||||
dejavu_fonts
|
|
||||||
fira-code
|
|
||||||
fira-code-symbols
|
|
||||||
fira-mono
|
|
||||||
font-awesome
|
|
||||||
google-fonts
|
|
||||||
noto-fonts
|
|
||||||
noto-fonts-cjk
|
|
||||||
noto-fonts-emoji
|
|
||||||
noto-fonts-extra
|
|
||||||
|
|
||||||
# overlays
|
|
||||||
rfd
|
|
||||||
lpass
|
|
||||||
zoom
|
|
||||||
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
@@ -157,10 +37,10 @@
|
|||||||
history.size = 1000000;
|
history.size = 1000000;
|
||||||
|
|
||||||
localVariables = {
|
localVariables = {
|
||||||
|
CASE_SENSITIVE="true";
|
||||||
|
DISABLE_UNTRACKED_FILES_DIRTY="true";
|
||||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=#838383,underline";
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=#838383,underline";
|
||||||
ZSH_DISABLE_COMPFIX = "true";
|
ZSH_DISABLE_COMPFIX = "true";
|
||||||
DISABLE_UNTRACKED_FILES_DIRTY="true";
|
|
||||||
CASE_SENSITIVE="true";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
@@ -171,7 +51,6 @@
|
|||||||
export PATH=$PATH:~/.nix-profile/bin
|
export PATH=$PATH:~/.nix-profile/bin
|
||||||
export PATH=$PATH:~/.npm-packages/bin
|
export PATH=$PATH:~/.npm-packages/bin
|
||||||
export PATH=$PATH:~/go/bin
|
export PATH=$PATH:~/go/bin
|
||||||
export PATH=$PATH:~/node-v12.19.1-linux-x64/bin
|
|
||||||
export CM_LAUNCHER=rofi
|
export CM_LAUNCHER=rofi
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
@@ -259,7 +138,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
key_bindings = [
|
key_bindings = [
|
||||||
{ key = "Home"; mods = "Control"; action = "RecentFontSize"; }
|
{ key = "Home"; mods = "Control"; action = "ResetFontSize"; }
|
||||||
{ key = "Plus"; mods = "Control"; action = "IncreaseFontSize"; }
|
{ key = "Plus"; mods = "Control"; action = "IncreaseFontSize"; }
|
||||||
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
|
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
|
||||||
];
|
];
|
||||||
|
148
.config/nixpkgs/packages.nix
Normal file
148
.config/nixpkgs/packages.nix
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
{ pkgs }:
|
||||||
|
|
||||||
|
with pkgs; [
|
||||||
|
|
||||||
|
# utils
|
||||||
|
bat
|
||||||
|
bind
|
||||||
|
colordiff
|
||||||
|
curl
|
||||||
|
direnv
|
||||||
|
exa
|
||||||
|
fd
|
||||||
|
fzf
|
||||||
|
git
|
||||||
|
gnumake
|
||||||
|
jq
|
||||||
|
ripgrep
|
||||||
|
tree
|
||||||
|
unzip
|
||||||
|
zip
|
||||||
|
|
||||||
|
# monitoring
|
||||||
|
htop
|
||||||
|
|
||||||
|
# password
|
||||||
|
gopass
|
||||||
|
|
||||||
|
# social media
|
||||||
|
rtv
|
||||||
|
|
||||||
|
# imaging
|
||||||
|
gimp
|
||||||
|
|
||||||
|
# editors
|
||||||
|
libreoffice
|
||||||
|
vscodium
|
||||||
|
|
||||||
|
# audio
|
||||||
|
audio-recorder
|
||||||
|
spotify
|
||||||
|
|
||||||
|
# video
|
||||||
|
youtube-dl
|
||||||
|
vlc
|
||||||
|
|
||||||
|
# network
|
||||||
|
bandwhich
|
||||||
|
deluge
|
||||||
|
nmap
|
||||||
|
openvpn
|
||||||
|
postman
|
||||||
|
|
||||||
|
# go
|
||||||
|
go
|
||||||
|
|
||||||
|
# terraform
|
||||||
|
terraform-ls
|
||||||
|
terraform_0_14
|
||||||
|
tflint
|
||||||
|
tfsec
|
||||||
|
|
||||||
|
# cloud
|
||||||
|
google-cloud-sdk
|
||||||
|
|
||||||
|
# jvm
|
||||||
|
jdk8
|
||||||
|
gradle
|
||||||
|
groovy
|
||||||
|
maven
|
||||||
|
|
||||||
|
# encryption
|
||||||
|
cryptsetup
|
||||||
|
|
||||||
|
# browser
|
||||||
|
brave
|
||||||
|
firefox
|
||||||
|
|
||||||
|
# docker
|
||||||
|
docker
|
||||||
|
docker-compose
|
||||||
|
|
||||||
|
# k8s
|
||||||
|
kubectl
|
||||||
|
kubernetes-helm
|
||||||
|
|
||||||
|
# nix
|
||||||
|
nixpkgs-fmt
|
||||||
|
rnix-lsp
|
||||||
|
|
||||||
|
# games
|
||||||
|
steam
|
||||||
|
minecraft
|
||||||
|
yuzu
|
||||||
|
|
||||||
|
# communication
|
||||||
|
discord
|
||||||
|
element-desktop
|
||||||
|
signal-desktop
|
||||||
|
slack
|
||||||
|
|
||||||
|
## aws
|
||||||
|
awscli2
|
||||||
|
ssm-session-manager-plugin
|
||||||
|
|
||||||
|
# python
|
||||||
|
black
|
||||||
|
python38
|
||||||
|
python38Packages.ipython
|
||||||
|
python38Packages.pip
|
||||||
|
python38Packages.poetry
|
||||||
|
python38Packages.setuptools
|
||||||
|
python38Packages.virtualenv
|
||||||
|
|
||||||
|
# fonts
|
||||||
|
dejavu_fonts
|
||||||
|
fira-code
|
||||||
|
fira-code-symbols
|
||||||
|
fira-mono
|
||||||
|
font-awesome
|
||||||
|
google-fonts
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-cjk
|
||||||
|
noto-fonts-emoji
|
||||||
|
noto-fonts-extra
|
||||||
|
|
||||||
|
# misc
|
||||||
|
asciinema
|
||||||
|
github-cli
|
||||||
|
glibcLocales
|
||||||
|
go-jira
|
||||||
|
hadolint
|
||||||
|
nodejs-12_x
|
||||||
|
imagemagick
|
||||||
|
pfetch
|
||||||
|
pinentry-curses
|
||||||
|
shellcheck
|
||||||
|
shfmt
|
||||||
|
starship
|
||||||
|
tmux
|
||||||
|
xclip
|
||||||
|
xdg_utils
|
||||||
|
zathura
|
||||||
|
|
||||||
|
# overlays
|
||||||
|
rfd
|
||||||
|
lpass
|
||||||
|
zoom
|
||||||
|
]
|
Reference in New Issue
Block a user