introduce wsl config
This commit is contained in:
parent
e0bf6e4467
commit
b807b9d00d
4 changed files with 300 additions and 16 deletions
195
wsl/home.nix
Executable file
195
wsl/home.nix
Executable file
|
|
@ -0,0 +1,195 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
rclone
|
||||
talosctl
|
||||
bat
|
||||
teleport
|
||||
ansible
|
||||
kubectl
|
||||
opentofu
|
||||
nerd-fonts.jetbrains-mono
|
||||
age
|
||||
sops
|
||||
deploy-rs
|
||||
kubernetes-helm
|
||||
kubectx
|
||||
fzf-preview
|
||||
zsh-fzf-tab
|
||||
zsh-forgit
|
||||
zsh-fzf-history-search
|
||||
];
|
||||
#sessionVariables = {
|
||||
# SOPS_AGE_KEY_FILE = "/Users/duumxh/.config/sops/age/keys.txt";
|
||||
#};
|
||||
stateVersion = "25.11";
|
||||
};
|
||||
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Den Afanasyev";
|
||||
userEmail = "ceo@furry.industries";
|
||||
};
|
||||
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
prezto = {
|
||||
prompt = {
|
||||
theme = "powerlevel10k";
|
||||
};
|
||||
enable = true;
|
||||
};
|
||||
|
||||
autosuggestion = {
|
||||
#highlight = "fg=#ff00ff,bg=cyan,bold,underline";
|
||||
#strategy = [ "completion" "history" ];
|
||||
enable = true;
|
||||
};
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "fzf-tab";
|
||||
src = "${pkgs.zsh-fzf-tab}/share/fzf-tab";
|
||||
}
|
||||
];
|
||||
|
||||
history = {
|
||||
append = true;
|
||||
expireDuplicatesFirst = true;
|
||||
};
|
||||
initContent = lib.mkOrder 500 ''
|
||||
source ~/.p10k.zsh
|
||||
export TELEPORT_ADD_KEYS_TO_AGENT=no
|
||||
export K9S_SKIN="transparent"
|
||||
echo "Hey there raccoon! 🦝🍁"
|
||||
'';
|
||||
#localVariables = {};
|
||||
|
||||
shellAliases = {
|
||||
ssh-add = "ssh-add.exe";
|
||||
ssh = "ssh-add.exe -l > /dev/null || ssh-add.exe && ssh.exe";
|
||||
ls = "eza";
|
||||
cd = "z";
|
||||
cat = "bat";
|
||||
k = "kubectl";
|
||||
m = "micro";
|
||||
h = "helm";
|
||||
t = "teleport";
|
||||
tctl = "talosctl";
|
||||
};
|
||||
};
|
||||
|
||||
fzf = {
|
||||
colors = {
|
||||
fg = "-1";
|
||||
"fg+" = "#d0d0d0";
|
||||
bg = "-1";
|
||||
"bg+" = "#262626";
|
||||
hl = "#5f87af";
|
||||
"hl+" = "#5fd7ff";
|
||||
info = "#afaf87";
|
||||
marker = "#87ff00";
|
||||
prompt = "#d7005f";
|
||||
spinner = "#af5fff";
|
||||
pointer = "#af5fff";
|
||||
header = "#87afaf";
|
||||
border = "#262626";
|
||||
label = "#aeaeae";
|
||||
query = "#d9d9d9";
|
||||
};
|
||||
defaultOptions = [
|
||||
"--border=rounded"
|
||||
"--border-label"
|
||||
"--preview-window=border-rounded"
|
||||
"--prompt=> "
|
||||
"--marker=>"
|
||||
"--pointer=◆"
|
||||
"--separator=─"
|
||||
"--scrollbar=│"
|
||||
];
|
||||
enableZshIntegration = true;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
eza = {
|
||||
enableZshIntegration = true;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
bat = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
zoxide = {
|
||||
enableZshIntegration = true;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
micro = {
|
||||
settings = {
|
||||
colorscheme = "simple";
|
||||
scrollbar = true;
|
||||
};
|
||||
enable = true;
|
||||
};
|
||||
|
||||
k9s = {
|
||||
skins = {
|
||||
transparent = {
|
||||
k9s = {
|
||||
body.bgColor = "default";
|
||||
prompt.bgColor = "default";
|
||||
info.sectionColor = "default";
|
||||
dialog = {
|
||||
bgColor = "default";
|
||||
labelFgColor = "default";
|
||||
fieldFgColor = "default";
|
||||
};
|
||||
frame = {
|
||||
crumbs.bgColor = "default";
|
||||
title = {
|
||||
bgColor = "default";
|
||||
counterColor = "default";
|
||||
};
|
||||
menu.fgColor = "default";
|
||||
};
|
||||
views = {
|
||||
charts.bgColor = "default";
|
||||
table = {
|
||||
bgColor = "default";
|
||||
header = {
|
||||
fgColor = "default";
|
||||
bgColor = "default";
|
||||
};
|
||||
};
|
||||
xray.bgColor = "default";
|
||||
logs = {
|
||||
bgColor = "default";
|
||||
indicator = {
|
||||
bgColor = "default";
|
||||
toggleOnColor = "default";
|
||||
toggleOffColor = "default";
|
||||
};
|
||||
};
|
||||
yaml = {
|
||||
colonColor = "default";
|
||||
valueColor = "default";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home-manager.enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue