Put every variables in top of the file for easy copy to another config

This commit is contained in:
Hadi
2024-10-09 15:12:50 +02:00
parent 55c7c7068a
commit 0bd55fdc10
27 changed files with 298 additions and 301 deletions

View File

@@ -1,14 +1,19 @@
{ config, lib, ... }: {
{ config, lib, ... }:
let
accent = "#" + config.lib.stylix.colors.base0D;
foreground = "#" + config.lib.stylix.colors.base05;
muted = "#" + config.lib.stylix.colors.base03;
in {
programs.fzf = {
enable = true;
enableZshIntegration = true;
colors = lib.mkForce {
"fg+" = "#" + config.lib.stylix.colors.base0D;
"fg+" = accent;
"bg+" = "-1";
"fg" = "#" + config.lib.stylix.colors.base05;
"fg" = foreground;
"bg" = "-1";
"prompt" = "#" + config.lib.stylix.colors.base03;
"pointer" = "#" + config.lib.stylix.colors.base0D;
"prompt" = muted;
"pointer" = accent;
};
defaultOptions = [
"--margin=1"

View File

@@ -1,4 +1,8 @@
{ config, lib, ... }: {
{ config, lib, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
background-alt = "#${config.lib.stylix.colors.base01}";
in {
programs.starship = {
enable = true;
settings = {
@@ -10,20 +14,18 @@
"$git_status"
"$character"
];
directory = { style = "#${config.lib.stylix.colors.base0D}"; };
directory = { style = accent; };
character = {
success_symbol = "[](#${config.lib.stylix.colors.base0D})";
success_symbol = "[](${accent})";
error_symbol = "[](red)";
vimcmd_symbol = "[](cyan)";
};
git_branch = {
symbol = "[](#${config.lib.stylix.colors.base01}) ";
style =
"fg:#${config.lib.stylix.colors.base0D} bg:#${config.lib.stylix.colors.base01}";
format =
"on [$symbol$branch]($style)[](#${config.lib.stylix.colors.base01}) ";
symbol = "[](${background-alt}) ";
style = "fg:${accent} bg:${background-alt}";
format = "on [$symbol$branch]($style)[](${background-alt}) ";
};
git_status = {

View File

@@ -1,4 +1,6 @@
{ pkgs, lib, config, ... }: {
{ pkgs, lib, config, ... }:
let fetch = config.var.theme.fetch; # neofetch, nerdfetch, pfetch
in {
home.packages = with pkgs; [ bat ripgrep tldr sesh ];
@@ -13,11 +15,11 @@
initExtraFirst = ''
bindkey -e
${if config.var.theme.fetch == "neofetch" then
${if fetch == "neofetch" then
pkgs.neofetch + "/bin/neofetch"
else if config.var.theme.fetch == "nerdfetch" then
else if fetch == "nerdfetch" then
"nerdfetch"
else if config.var.theme.fetch == "pfetch" then
else if fetch == "pfetch" then
"echo; ${pkgs.pfetch}/bin/pfetch"
else
""}
@@ -63,7 +65,8 @@
wireguard-import = "nmcli connection import type wireguard file";
notes = "cd ~/nextcloud/Notes && -c ':Telescope find_files' index.md";
notes =
"cd ~/nextcloud/Notes && nvim -c ':Telescope find_files' index.md";
note = "notes";
# git