nix/home/default.nix

186 lines
3.1 KiB
Nix
Raw Normal View History

2022-07-05 22:36:51 +02:00
{pkgs, lib, ...}:
2021-10-09 01:46:55 +02:00
{
2022-07-05 22:36:51 +02:00
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"ookla-speedtest"
];
2021-10-09 01:46:55 +02:00
home.packages = with pkgs; [
2021-10-23 17:50:36 +02:00
(python3.withPackages(ps: with ps; [
2022-06-06 23:10:57 +02:00
# ansible
2021-10-23 17:50:36 +02:00
dnspython
2021-10-28 21:05:21 +02:00
youtube-dl
2021-11-13 22:06:43 +01:00
boto3 # aws-s3 support for ansible
2022-04-08 20:01:06 +02:00
kubernetes # is in ansible kubernetes.core module
2021-11-19 20:41:07 +01:00
# dict_utils for an ansible filter_plugin
setuptools
deepmerge
pip
passlib # bcrypt
pyyaml
2021-10-23 17:50:36 +02:00
]))
2022-06-06 23:10:57 +02:00
ansible
2021-10-09 01:46:55 +02:00
killall
tree
2021-10-09 01:46:55 +02:00
htop
mosh
dasel
2021-10-09 01:46:55 +02:00
git
2021-11-13 22:06:43 +01:00
pre-commit
2021-10-09 01:46:55 +02:00
git-lfs
2022-04-08 20:01:35 +02:00
git-crypt
git-annex
2022-02-23 22:22:10 +01:00
ghorg
2021-10-09 01:46:55 +02:00
tig
cocogitto
2021-10-09 01:46:55 +02:00
tea
glab
figlet
tmux
2021-10-11 11:37:10 +02:00
w3m
2022-04-08 20:11:10 +02:00
wget
2021-10-09 01:46:55 +02:00
xh
minio-client
2021-10-09 01:46:55 +02:00
liboping # fix it
mtr
2022-07-05 22:36:51 +02:00
ookla-speedtest
hey
2021-10-09 01:46:55 +02:00
colordiff
direnv
## nice prompt together with grml
# pure-prompt
# vimPlugins.nvim-lspconfig
# vimPlugins.nerdtree
go_1_18 gcc libcap
2022-07-05 22:37:17 +02:00
gopls
# cargo
rustup
2021-10-15 01:44:37 +02:00
yarn
2022-07-23 15:00:17 +02:00
cmake
2021-10-14 16:30:31 +02:00
pwgen
hugo
asciidoctor-with-extensions
# gotify-cli # use ntfy.sh
2021-10-09 01:46:55 +02:00
glow
2021-11-13 22:06:43 +01:00
imagemagick
2021-10-23 17:50:04 +02:00
ffmpeg
# devOps
terraform
tflint
2022-04-08 20:11:24 +02:00
kubectl
kustomize
2022-06-06 23:10:57 +02:00
kubernetes-helm
helmfile
stern
kubeswitch
kubespy
fluxcd
kubeseal
2022-07-05 22:37:17 +02:00
# nixopsUnstable
2021-10-09 01:46:55 +02:00
];
home.shellAliases = {
k9sctx = "k9s --kubeconfig=$(switch)";
k9s = "k9s --headless";
kubectx = "export KUBECONFIG=$(switch)";
};
programs.home-manager.enable = true;
2022-07-23 08:50:22 +02:00
programs.password-store = {
enable = true;
package = pkgs.pass-wayland.withExtensions (exts: [
exts.pass-otp
]);
settings = {
PASSWORD_STORE_DIR = "$HOME/.password-store";
};
};
programs.nushell = {
enable = true;
# envFile.text = ''
# let-env config = {
# hooks: {
# pre_prompt: [{
# code: "
# let direnv = (direnv export json | from json)
# let direnv = if ($direnv | length) == 1 { $direnv } else { {} }
# $direnv | load-env
# "
# }]
# }
# }
# '';
};
2021-10-09 01:46:55 +02:00
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
# initExtra = ''
# source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
# prompt pure
# '';
};
programs.starship = {
enable = true;
# enableNushellIntegration = true;
settings = {
directory ={
truncation_length = 0;
};
helm = {
disabled = true;
};
kubernetes = {
disabled = false;
format = "[$symbol$cluster( \($namespace\))]($style) in ";
detect_extensions = [
"package" # helm
];
};
};
2022-07-05 22:36:31 +02:00
};
2021-11-13 22:06:43 +01:00
programs.direnv.enable = true;
programs.btop.enable = true;
programs.tealdeer.enable = true; # man / tldr ...
2022-06-06 23:10:57 +02:00
programs.gitui.enable = true;
2021-10-09 01:46:55 +02:00
programs.neovim = {
2023-01-13 22:05:55 +01:00
enable = false;
2021-10-09 01:46:55 +02:00
extraConfig = ''
syntax on
set number relativenumber
'';
plugins = with pkgs.vimPlugins; [
nvim-lspconfig
airline
Syntastic
{
plugin = nerdtree;
config = "map <C-n> :NERDTreeToggle<CR>";
}
];
};
2023-01-13 22:05:55 +01:00
programs.helix = {
enable = true;
languages = [];
settings = {
theme = "base16_default";
editor = {
lsp.display-messages = true;
};
};
};
programs.k9s = {
enable = true;
# does not open ERROR with clusters settings
#settings.k9s = {
# headless = true;
# logger.fullScreenLogs = true;
#};
};
2021-10-09 01:46:55 +02:00
}