Put every variables in top of the file for easy copy to another config
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user