chore: cleanup configs

This commit is contained in:
Den Afanasyev 2025-10-21 20:08:37 +03:00
parent 12416bc448
commit b202dc94f7
18 changed files with 493 additions and 332 deletions

View file

@ -1,31 +1,37 @@
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
# Define home options directly if this is a standalone home.nix
# or within config if it's a module
home = {
packages = with pkgs; [
age
ansible
bat
deploy-rs
fzf-preview
kubectl
kubectx
kubernetes-helm
nerd-fonts.jetbrains-mono
nixfmt-rfc-style
opentofu
sops
talosctl
teleport
zsh-forgit
zsh-fzf-history-search
zsh-fzf-tab
age
ansible
bat
bun
cilium-cli
cmake
ninja
rustup
deploy-rs
fzf-preview
kubectl
kubectx
kubernetes-helm
nerd-fonts.jetbrains-mono
nil
nixd
opentofu
sops
talosctl
teleport
zsh-forgit
zsh-fzf-history-search
zsh-fzf-tab
rclone
];
stateVersion = "25.11";
};
#nixpkgs.config.allowUnfree = true; # It's better to put this in configuration.nix or a more specific place if it's only meant for certain hosts.
#nixpkgs.config.allowUnfree = true; # It's better to put this in configuration.nix or a more specific place if it's only meant for certain hosts.
}

View file

@ -1,40 +1,43 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
homebrew = {
enable = true;
enable = true;
onActivation.autoUpdate = true;
onActivation.upgrade = true;
#onActivation.cleanup = "zap";
onActivation.autoUpdate = true;
onActivation.upgrade = true;
#onActivation.cleanup = "zap";
casks = [
"arc"
"bettermouse"
"blender"
"citrix-workspace"
"cryptomator"
"Discord"
"Element"
"ghostty"
"IINA"
"Keka"
"meta"
"mullvad-vpn"
"obs"
"Obsidian"
"orion"
"Secretive"
"tailscale-app"
"telegram"
"UTM"
"vscodium"
];
casks = [
"arc"
"bettermouse"
"blender"
"citrix-workspace"
"cryptomator"
"Discord"
"Element"
"ghostty"
"IINA"
"Keka"
"meta"
"mullvad-browser"
"mullvad-vpn"
"obs"
"Obsidian"
"orion"
"Secretive"
"tailscale-app"
"telegram"
"UTM"
"vscodium"
"raycast"
"zed"
];
masApps = {
"Bitwarden" = 1352778147;
"DropOver" = 1355679052;
"Yubico Authenticator" = 1497506650;
};
};
}
masApps = {
"Bitwarden" = 1352778147;
"DropOver" = 1355679052;
"Yubico Authenticator" = 1497506650;
};
};
}

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
programs.bat = {
enable = true;
};
}
}

View file

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
programs.eza = {
enableZshIntegration = true;
enable = true;
};
}
}

View file

@ -1,35 +1,35 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
programs.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;
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;
};
}
}

View file

@ -1,9 +1,13 @@
{ config, pkgs, lib, ... }:
{ ... }:
{
programs.git = {
enable = true;
userName = "Den Afanasyev";
userEmail = "ceo@furry.industries";
settings = {
user = {
name = "Den Afanasyev";
email = "ceo@furry.industries";
};
};
};
}
}

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
programs.k9s = {
skins = {

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
programs.micro = {
@ -8,4 +8,4 @@
};
enable = true;
};
}
}

View file

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
programs.ssh = {
enable = true;
enableDefaultConfig = false;
};
}
}

View file

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
programs.zoxide = {
enableZshIntegration = true;
enable = true;
};
}
}

View file

@ -1,53 +1,56 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
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
echo "Hey there raccoon! 🦝🍁"
'';
localVariables = {
PURE_GIT_PULL = "0";
TELEPORT_ADD_KEYS_TO_AGENT = "no";
K9S_SKIN = "transparent";
prezto = {
prompt = {
theme = "powerlevel10k";
};
enable = true;
};
shellAliases = {
ls = "eza";
cd = "z";
cat = "bat";
k = "kubectl";
m = "micro";
h = "helm";
tp = "teleport";
t = "talosctl";
};
};
}
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;
};
localVariables = {
PURE_GIT_PULL = "0";
TELEPORT_ADD_KEYS_TO_AGENT = "no";
K9S_SKIN = "transparent";
};
initContent = lib.mkOrder 500 ''
source ~/.p10k.zsh
echo "Hey there raccoon! 🦝🍁"
'';
shellAliases = {
ls = "eza";
cd = "z";
cat = "bat";
k = "kubectl";
m = "micro";
h = "helm";
tp = "teleport";
t = "talosctl";
};
};
}