Migrate to snowfall lib
This commit is contained in:
91
modules/home/cli/btop/default.nix
Normal file
91
modules/home/cli/btop/default.nix
Normal file
@ -0,0 +1,91 @@
|
||||
{ pkgs, config, ... }: {
|
||||
|
||||
home.packages = with pkgs; [ btop ];
|
||||
xdg.configFile."btop/themes/${config.colorScheme.slug}.theme".text = ''
|
||||
|
||||
# Theme generated from: ${config.colorScheme.slug}
|
||||
|
||||
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||
theme[main_bg]="#${config.colorScheme.colors.base00}"
|
||||
|
||||
# Main text color
|
||||
theme[main_fg]="#${config.colorScheme.colors.base07}"
|
||||
|
||||
# Title color for boxes
|
||||
theme[title]="#${config.colorScheme.colors.base07}"
|
||||
|
||||
# Higlight color for keyboard shortcuts
|
||||
theme[hi_fg]="#${config.colorScheme.colors.base0E}"
|
||||
|
||||
# Background color of selected item in processes box
|
||||
theme[selected_bg]="#${config.colorScheme.colors.base0C}"
|
||||
|
||||
# Foreground color of selected item in processes box
|
||||
theme[selected_fg]="#${config.colorScheme.colors.base00}"
|
||||
|
||||
# Color of inactive/disabled text
|
||||
theme[inactive_fg]="#${config.colorScheme.colors.base02}"
|
||||
|
||||
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||
theme[graph_text]="#${config.colorScheme.colors.base05}"
|
||||
|
||||
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||
theme[proc_misc]="#${config.colorScheme.colors.base0C}"
|
||||
|
||||
# Cpu box outline color
|
||||
theme[cpu_box]="#${config.colorScheme.colors.base02}"
|
||||
|
||||
# Memory/disks box outline color
|
||||
theme[mem_box]="#${config.colorScheme.colors.base02}"
|
||||
|
||||
# Net up/down box outline color
|
||||
theme[net_box]="#${config.colorScheme.colors.base02}"
|
||||
|
||||
# Processes box outline color
|
||||
theme[proc_box]="#${config.colorScheme.colors.base02}"
|
||||
|
||||
# Box divider line and small boxes line color
|
||||
theme[div_line]="#${config.colorScheme.colors.base02}"
|
||||
|
||||
# Temperature graph colors
|
||||
theme[temp_start]="#${config.colorScheme.colors.base0D}"
|
||||
theme[temp_mid]=""
|
||||
theme[temp_end]="#${config.colorScheme.colors.base0F}"
|
||||
|
||||
# CPU graph colors
|
||||
theme[cpu_start]="#${config.colorScheme.colors.base0C}"
|
||||
theme[cpu_mid]=""
|
||||
theme[cpu_end]="#${config.colorScheme.colors.base0C}"
|
||||
|
||||
# Mem/Disk free meter
|
||||
theme[free_start]="#${config.colorScheme.colors.base0A}"
|
||||
theme[free_mid]=""
|
||||
theme[free_end]="#${config.colorScheme.colors.base0A}"
|
||||
|
||||
# Mem/Disk cached meter
|
||||
theme[cached_start]="#${config.colorScheme.colors.base09}"
|
||||
theme[cached_mid]=""
|
||||
theme[cached_end]="#${config.colorScheme.colors.base09}"
|
||||
|
||||
# Mem/Disk available meter
|
||||
theme[available_start]="#${config.colorScheme.colors.base0B}"
|
||||
theme[available_mid]=""
|
||||
theme[available_end]="#${config.colorScheme.colors.base0B}"
|
||||
|
||||
# Mem/Disk used meter
|
||||
theme[used_start]="#${config.colorScheme.colors.base08}"
|
||||
theme[used_mid]=""
|
||||
theme[used_end]="#${config.colorScheme.colors.base08}"
|
||||
|
||||
# Download graph colors
|
||||
theme[download_start]="#${config.colorScheme.colors.base02}"
|
||||
theme[download_mid]=""
|
||||
theme[download_end]="#${config.colorScheme.colors.base0D}"
|
||||
|
||||
# Upload graph colors
|
||||
theme[upload_start]="#${config.colorScheme.colors.base02}"
|
||||
theme[upload_mid]=""
|
||||
theme[upload_end]="#${config.colorScheme.colors.base0E}"
|
||||
|
||||
'';
|
||||
}
|
16
modules/home/cli/git/default.nix
Executable file
16
modules/home/cli/git/default.nix
Executable file
@ -0,0 +1,16 @@
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "${config.homecfg.git.email}";
|
||||
userName = "${config.homecfg.git.username}";
|
||||
signing = {
|
||||
key = "${config.homecfg.git.key}";
|
||||
signByDefault = true;
|
||||
};
|
||||
ignores = [ "*result*" ".direnv" "node_modules" ];
|
||||
extraConfig = { core.hooksPath = "./.dev/hooks"; };
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ tig ];
|
||||
}
|
8
modules/home/cli/helix/default.nix
Normal file
8
modules/home/cli/helix/default.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ ... }: {
|
||||
programs.helix = {
|
||||
#enable = true;
|
||||
languages = { };
|
||||
settings = { };
|
||||
themes = { };
|
||||
};
|
||||
}
|
58
modules/home/cli/kitty/default.nix
Executable file
58
modules/home/cli/kitty/default.nix
Executable file
@ -0,0 +1,58 @@
|
||||
{ config, ... }: {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
foreground = "#${config.colorScheme.colors.base07}";
|
||||
background = "#${config.colorScheme.colors.base00}";
|
||||
selection_foreground = "#${config.colorScheme.colors.base07}";
|
||||
selection_background = "#${config.colorScheme.colors.base03}";
|
||||
background_opacity = "0.9";
|
||||
|
||||
cursor = "#${config.colorScheme.colors.base05}";
|
||||
cursor_text_color = "#${config.colorScheme.colors.base01}";
|
||||
|
||||
url_color = "#${config.colorScheme.colors.base05}";
|
||||
|
||||
active_border_color = "#${config.colorScheme.colors.base05}";
|
||||
inactive_border_color = "#${config.colorScheme.colors.base03}";
|
||||
bell_border_color = "#${config.colorScheme.colors.base09}";
|
||||
|
||||
wayland_titlebar_color = "system";
|
||||
macos_titlebar_color = "system";
|
||||
|
||||
active_tab_foreground = "#${config.colorScheme.colors.base0C}";
|
||||
active_tab_background = "#${config.colorScheme.colors.base01}";
|
||||
inactive_tab_foreground = "#${config.colorScheme.colors.base06}";
|
||||
inactive_tab_background = "#${config.colorScheme.colors.base00}";
|
||||
tab_bar_background = "#${config.colorScheme.colors.base02}";
|
||||
|
||||
mark1_foreground = "#${config.colorScheme.colors.base00}";
|
||||
mark1_background = "#${config.colorScheme.colors.base0C}";
|
||||
mark2_foreground = "#${config.colorScheme.colors.base00}";
|
||||
mark2_background = "#${config.colorScheme.colors.base0E}";
|
||||
mark3_foreground = "#${config.colorScheme.colors.base00}";
|
||||
mark3_background = "#${config.colorScheme.colors.base0A}";
|
||||
|
||||
color0 = "#${config.colorScheme.colors.base00}";
|
||||
color1 = "#${config.colorScheme.colors.base01}";
|
||||
color2 = "#${config.colorScheme.colors.base02}";
|
||||
color3 = "#${config.colorScheme.colors.base03}";
|
||||
color4 = "#${config.colorScheme.colors.base04}";
|
||||
color5 = "#${config.colorScheme.colors.base05}";
|
||||
color6 = "#${config.colorScheme.colors.base06}";
|
||||
color7 = "#${config.colorScheme.colors.base07}";
|
||||
color8 = "#${config.colorScheme.colors.base08}";
|
||||
color9 = "#${config.colorScheme.colors.base09}";
|
||||
color10 = "#${config.colorScheme.colors.base0A}";
|
||||
color11 = "#${config.colorScheme.colors.base0B}";
|
||||
color12 = "#${config.colorScheme.colors.base0C}";
|
||||
color13 = "#${config.colorScheme.colors.base0D}";
|
||||
color14 = "#${config.colorScheme.colors.base0E}";
|
||||
color15 = "#${config.colorScheme.colors.base0F}";
|
||||
|
||||
font_size = 12;
|
||||
window-padding-width = 15;
|
||||
# ...
|
||||
};
|
||||
};
|
||||
}
|
127
modules/home/cli/neofetch/config.conf
Executable file
127
modules/home/cli/neofetch/config.conf
Executable file
@ -0,0 +1,127 @@
|
||||
|
||||
print_info() {
|
||||
info ""
|
||||
info "${c5} ├─ Distro " distro
|
||||
info "${c5} ├─ Kernel " kernel
|
||||
info "${c5} ├─ Pkgs " packages
|
||||
info "${c5} ├─ Compositor " de
|
||||
info "${c5} ├─ CPU " cpu
|
||||
info "${c5} ├─ GPU " gpu
|
||||
info "${c5} ├─ Term " term
|
||||
prin "$(color 0) $(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7)"
|
||||
prin "$(color 8) $(color 9) $(color 10) $(color 11) $(color 12) $(color 13) $(color 14) $(color 15)"
|
||||
|
||||
}
|
||||
|
||||
##--------- Title
|
||||
title_fqdn="off"
|
||||
|
||||
##--------- Kernel
|
||||
kernel_shorthand="off"
|
||||
|
||||
##--------- Distro
|
||||
distro_shorthand="on"
|
||||
os_arch="off"
|
||||
|
||||
##--------- Uptime
|
||||
uptime_shorthand="off"
|
||||
|
||||
##--------- Memory
|
||||
memory_percent="off"
|
||||
memory_unit="mib"
|
||||
|
||||
##--------- Packages
|
||||
package_managers="on"
|
||||
|
||||
##--------- Shell
|
||||
shell_path="off"
|
||||
shell_version="on"
|
||||
|
||||
##--------- CPU
|
||||
speed_type="bios_limit"
|
||||
speed_shorthand="off"
|
||||
cpu_brand="on"
|
||||
cpu_speed="off"
|
||||
cpu_cores="off"
|
||||
cpu_temp="off"
|
||||
|
||||
##--------- GPU
|
||||
gpu_brand="on"
|
||||
gpu_type="dedicated"
|
||||
|
||||
##--------- Resolution
|
||||
refresh_rate="off"
|
||||
|
||||
##--------- GTK
|
||||
gtk_shorthand="off"
|
||||
gtk2="on"
|
||||
gtk3="on"
|
||||
|
||||
##--------- IP
|
||||
public_ip_host="http://ident.me"
|
||||
public_ip_timeout=2
|
||||
|
||||
##--------- DE
|
||||
de_version="on"
|
||||
|
||||
##--------- Disk
|
||||
disk_show=('/')
|
||||
disk_subtitle="mount"
|
||||
disk_percent="on"
|
||||
|
||||
##--------- Song
|
||||
music_player="auto"
|
||||
song_format="%artist% - %album% - %title%"
|
||||
song_shorthand="off"
|
||||
mpc_args=()
|
||||
|
||||
##--------- Text Colors
|
||||
colors=(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)
|
||||
|
||||
##--------- Text Options
|
||||
bold="on"
|
||||
underline_enabled="on"
|
||||
underline_char=""
|
||||
separator=":"
|
||||
|
||||
##--------- Color Blocks
|
||||
block_range=(0 15)
|
||||
color_blocks="on"
|
||||
block_width=3
|
||||
block_height=1
|
||||
col_offset="auto"
|
||||
|
||||
##--------- Progress Bars
|
||||
bar_char_elapsed="-"
|
||||
bar_char_total="="
|
||||
bar_border="on"
|
||||
bar_length=15
|
||||
bar_color_elapsed="distro"
|
||||
bar_color_total="distro"
|
||||
|
||||
cpu_display="off"
|
||||
memory_display="off"
|
||||
battery_display="off"
|
||||
disk_display="off"
|
||||
|
||||
##--------- Backend Settings
|
||||
image_backend="kitty"
|
||||
image_source="auto"
|
||||
|
||||
##--------- Ascii Options
|
||||
ascii_distro="nixos_small"
|
||||
ascii_bold="on"
|
||||
|
||||
##--------- Image Options
|
||||
image_loop="off"
|
||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
||||
crop_mode="normal"
|
||||
crop_offset="center"
|
||||
image_size="auto"
|
||||
gap=2
|
||||
yoffset=0
|
||||
xoffset=0
|
||||
background_color=
|
||||
|
||||
##--------- Misc Options
|
||||
stdout="off"
|
4
modules/home/cli/neofetch/default.nix
Executable file
4
modules/home/cli/neofetch/default.nix
Executable file
@ -0,0 +1,4 @@
|
||||
{ pkgs, config, ... }: {
|
||||
home.packages = with pkgs; [ neofetch ];
|
||||
xdg.configFile."neofetch/config.conf".source = ./config.conf;
|
||||
}
|
17
modules/home/cli/other/default.nix
Normal file
17
modules/home/cli/other/default.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
sudo
|
||||
ripgrep
|
||||
unzip
|
||||
|
||||
socat
|
||||
ripgrep
|
||||
|
||||
appimage-run
|
||||
|
||||
cbonsai
|
||||
pipes-rs
|
||||
cmatrix
|
||||
cava
|
||||
];
|
||||
}
|
62
modules/home/cli/starship/default.nix
Executable file
62
modules/home/cli/starship/default.nix
Executable file
@ -0,0 +1,62 @@
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
|
||||
home.packages = with pkgs; [ starship ];
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableFishIntegration = false;
|
||||
enableIonIntegration = false;
|
||||
enableNushellIntegration = false;
|
||||
enableZshIntegration = true;
|
||||
settings = {
|
||||
format = lib.concatStrings [
|
||||
"[░▒▓](#${config.colorScheme.colors.base06})"
|
||||
"$username"
|
||||
"$hostname"
|
||||
"[](bg:#${config.colorScheme.colors.base05} fg:#${config.colorScheme.colors.base06})"
|
||||
"$directory"
|
||||
"[](bg:#${config.colorScheme.colors.base04} fg:#${config.colorScheme.colors.base05})"
|
||||
"[ ](bg:#${config.colorScheme.colors.base04})"
|
||||
"$env_var"
|
||||
"[](bg:#${config.colorScheme.colors.base00} fg:#${config.colorScheme.colors.base04})"
|
||||
" "
|
||||
];
|
||||
username = {
|
||||
show_always = true;
|
||||
style_user =
|
||||
"bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
|
||||
style_root =
|
||||
"bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
|
||||
format = "[ $user]($style)";
|
||||
};
|
||||
hostname = {
|
||||
ssh_symbol = "";
|
||||
style =
|
||||
"bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
|
||||
format = "[@$hostname]($style)";
|
||||
ssh_only = false;
|
||||
disabled = false;
|
||||
};
|
||||
directory = {
|
||||
style =
|
||||
"bg:#${config.colorScheme.colors.base05} fg:#${config.colorScheme.colors.base00}";
|
||||
format = "[ $path ]($style)";
|
||||
truncation_length = 3;
|
||||
truncation_symbol = "…/";
|
||||
};
|
||||
directory.substitutions = {
|
||||
"documents" = " ";
|
||||
"downloads" = " ";
|
||||
"music" = " ";
|
||||
"pictures" = " ";
|
||||
};
|
||||
env_var = {
|
||||
variable = "DEVSH";
|
||||
default = "";
|
||||
style =
|
||||
"bg:#${config.colorScheme.colors.base04} fg:#${config.colorScheme.colors.base00}";
|
||||
format = "[$env_value]($style)";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
18
modules/home/cli/zsh/default.nix
Executable file
18
modules/home/cli/zsh/default.nix
Executable file
@ -0,0 +1,18 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
nixflake_dir = "$HOME/files/nixconfig";
|
||||
nixflake_url = "git+https://git.helcel.net/sora/nixconfig";
|
||||
in {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
"sudo" = "sudo ";
|
||||
"devsh" =
|
||||
"nix develop --profile /tmp/devsh-env ${nixflake_url}#devsh -c zsh";
|
||||
"nixb" = "(sudo nixos-rebuild switch --flake ${nixflake_url})";
|
||||
"nixgc" = "sudo nix-collect-garbage -d && nix-collect-garbage -d";
|
||||
"ssh" = "TERM=xterm-256color ${pkgs.openssh}/bin/ssh";
|
||||
"top" = "btop";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user