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 # 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: Create `~/.config/nixpkgs/home.nix` with:
```nix ```nix
{pkgs, ...}: {pkgs, ...}:

View File

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

View File

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

View File

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