fix!(backup): try nushell, btop, rustup replace cargo and much more tools (like for k8s)

This commit is contained in:
genofire 2023-01-13 22:12:04 +01:00
parent abcabee811
commit 0e2e500739
5 changed files with 94 additions and 12 deletions

View File

@ -1,5 +1,10 @@
# Home-Manager
```bash
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
```
Create `~/.config/nixpkgs/home.nix` with:
```nix
{pkgs, ...}:

View File

@ -15,12 +15,14 @@
deepmerge
pip
passlib # bcrypt
pyyaml
]))
ansible
killall
tree
htop
mosh
dasel
git
pre-commit
git-lfs
@ -28,6 +30,7 @@
git-annex
ghorg
tig
cocogitto
tea
glab
figlet
@ -39,19 +42,23 @@
liboping # fix it
mtr
ookla-speedtest
hey
colordiff
direnv
# nice prompt together with grml
pure-prompt
#vimPlugins.nvim-lspconfig
#vimPlugins.nerdtree
go gcc libcap
## nice prompt together with grml
# pure-prompt
# vimPlugins.nvim-lspconfig
# vimPlugins.nerdtree
go_1_18 gcc libcap
gopls
cargo
# cargo
rustup
yarn
cmake
pwgen
gotify-cli
hugo
asciidoctor-with-extensions
# gotify-cli # use ntfy.sh
glow
imagemagick
ffmpeg
@ -59,12 +66,25 @@
terraform
tflint
kubectl
kustomize
kubernetes-helm
helmfile
k9s
stern
kubeswitch
kubespy
fluxcd
kubeseal
# nixopsUnstable
];
home.shellAliases = {
k9sctx = "k9s --kubeconfig=$(switch)";
k9s = "k9s --headless";
kubectx = "export KUBECONFIG=$(switch)";
};
programs.home-manager.enable = true;
programs.password-store = {
enable = true;
package = pkgs.pass-wayland.withExtensions (exts: [
@ -75,6 +95,23 @@
};
};
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
# "
# }]
# }
# }
# '';
};
programs.zsh = {
enable = true;
@ -105,6 +142,8 @@
};
};
programs.direnv.enable = true;
programs.btop.enable = true;
programs.tealdeer.enable = true; # man / tldr ...
programs.gitui.enable = true;
programs.neovim = {
@ -134,4 +173,13 @@
};
};
};
programs.k9s = {
enable = true;
# does not open ERROR with clusters settings
#settings.k9s = {
# headless = true;
# logger.fullScreenLogs = true;
#};
};
}

View File

@ -124,8 +124,20 @@ in
position = "0 0";
scale = "1.25";
};
"Japan Display Inc. 0x364C Unknown" = {
position = "0 0";
scale = "1.25";
};
"LG Electronics LG HDR 4K 0x0000655D" = {
position = "2400 0";
enable = "";
scale = "1.0";
# disable = true;
# resolution = "3840x2160@30Hz";
resolution = "3840x2160";
};
"Goldstar Company Ltd LG HDR 4K 0x0000655D" = {
position = "3000 0";
position = "2400 0";
enable = "";
scale = "1.0";
# disable = true;

View File

@ -4,6 +4,7 @@
home.sessionVariables = {
BROWSER = "firefox";
NIXOS_OZONE_WL = "1";
};
fonts.fontconfig.enable = true;
@ -24,7 +25,7 @@
# dbus
gcr
dconf
gotify-desktop
# gotify-desktop # use ntfy.sh instatt
# apps
virt-manager
lens
@ -40,10 +41,19 @@
inkscape
gimp
homebank
gramps # ahnen
# ahnen
(gramps.override {
enableOSM = true;
enableGraphviz = true;
enableGhostscript = true;
# pythonPath = [ pythonPackages.keyring ];
})
python310Packages.keyring
graphviz-nox
# - tootle # mastodon
# fractal # matrix
fluffychat
fractal-next
# fluffychat
cozy # audiobooks
];
gtk = {
@ -66,6 +76,9 @@
};
programs.gpg = {
enable = true;
scdaemonSettings = {
disable-ccid = true;
};
settings = {
keyserver = "hkps://keys.openpgp.org";
};
@ -84,6 +97,7 @@
};
programs.firefox = {
enable = true;
# package = pkgs.librewolf;
# package = pkgs.firefox-devedition-bin-unwrapped;
};
}

View File

@ -59,12 +59,14 @@
home-manager
## nice prompt together with grml
# pure-prompt
nushell
];
environment.shellAliases = {
ip = "ip --color";
watch = "watch -c";
grep = "grep --color=always --exclude-dir=.git";
vim = "hx";
k9s = "k9s --headless";
};
environment.variables.EDITOR = "hx";
@ -80,6 +82,7 @@
};
# zsh
# users.defaultUserShell = pkgs.nushell;
users.defaultUserShell = pkgs.zsh;
programs.zsh = {
enable = true;